]> Pileus Git - ~andy/linux/commit
serial: sccnxp: missing uart_unregister_driver() on error in sccnxp_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 23 Sep 2013 13:54:20 +0000 (21:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 22:44:45 +0000 (15:44 -0700)
commit7a95b815da307d66430f30d7b18dcddce62507bd
tree9f08041d4532ec7a076036597beb97e0b4bc434c
parent18d8519d35cb0b794d9b9c6f4ff7b97940a95bda
serial: sccnxp: missing uart_unregister_driver() on error in sccnxp_probe()

Add the missing uart_unregister_driver() before return
from sccnxp_probe() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c