Skip to content
Snippets Groups Projects
Commit ac0cdb3d authored by Mao Wenan's avatar Mao Wenan Committed by Greg Kroah-Hartman
Browse files

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: default avatarMao Wenan <maowenan@huawei.com>
Reviewed-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 67343306
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment