diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-09-23 21:54:20 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 15:44:45 -0700 |
commit | 7a95b815da307d66430f30d7b18dcddce62507bd (patch) | |
tree | 9f08041d4532ec7a076036597beb97e0b4bc434c | |
parent | 18d8519d35cb0b794d9b9c6f4ff7b97940a95bda (diff) | |
download | op-kernel-dev-7a95b815da307d66430f30d7b18dcddce62507bd.zip op-kernel-dev-7a95b815da307d66430f30d7b18dcddce62507bd.tar.gz |
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>
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index 49e9bbf..a447f71 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c @@ -986,6 +986,7 @@ static int sccnxp_probe(struct platform_device *pdev) return 0; } + uart_unregister_driver(&s->uart); err_out: if (!IS_ERR(s->regulator)) return regulator_disable(s->regulator); |