commit | ac0cdb3d990108df795b676cd0d0e65ac34b2273 | [log] [tgz] |
---|---|---|
author | Mao Wenan <maowenan@huawei.com> | Fri Mar 08 22:08:31 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 19 15:37:44 2019 +0100 |
tree | 41945a19f21fef5961071a5bb347688217e34173 | |
parent | 6734330654dac550f12e932996b868c6d0dcb421 [diff] |
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>