aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
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)
986 return 0; 986 return 0;
987 } 987 }
988 988
989 uart_unregister_driver(&s->uart);
989err_out: 990err_out:
990 if (!IS_ERR(s->regulator)) 991 if (!IS_ERR(s->regulator))
991 return regulator_disable(s->regulator); 992 return regulator_disable(s->regulator);