sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
commitac0cdb3d990108df795b676cd0d0e65ac34b2273
authorMao Wenan <maowenan@huawei.com>
Fri, 8 Mar 2019 14:08:31 +0000 (8 22:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 14:37:44 +0000 (19 15:37 +0100)
tree41945a19f21fef5961071a5bb347688217e34173
parent6734330654dac550f12e932996b868c6d0dcb421
sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()

Add the missing uart_unregister_driver() and i2c_del_driver() before return
from sc16is7xx_init() in the error handling case.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c