commit | e88ec72ec4337300ef44e1f8e76aa363fa3f127a | [log] [tgz] |
---|---|---|
author | Mao Wenan <maowenan@huawei.com> | Fri Mar 08 22:08:31 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat May 04 08:49:07 2019 +0200 |
tree | bc41fe4533359282931fd1927c4daa8102d260e9 | |
parent | 1ca3379d9613a4ec261c1e8f7aafa64039147d7b [diff] |
sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init() [ Upstream commit ac0cdb3d990108df795b676cd0d0e65ac34b2273 ] 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> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>