aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-09-23 21:54:20 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 15:44:45 -0700
commit7a95b815da307d66430f30d7b18dcddce62507bd (patch)
tree9f08041d4532ec7a076036597beb97e0b4bc434c /drivers/tty/serial/sccnxp.c
parent18d8519d35cb0b794d9b9c6f4ff7b97940a95bda (diff)
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>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r--drivers/tty/serial/sccnxp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c
index 49e9bbfe6cab..a447f71538ef 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);