diff options
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index c77304155410..98555179fe10 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c | |||
@@ -997,8 +997,6 @@ static int sccnxp_probe(struct platform_device *pdev) | |||
997 | } | 997 | } |
998 | 998 | ||
999 | err_out: | 999 | err_out: |
1000 | platform_set_drvdata(pdev, NULL); | ||
1001 | |||
1002 | return ret; | 1000 | return ret; |
1003 | } | 1001 | } |
1004 | 1002 | ||
@@ -1016,7 +1014,6 @@ static int sccnxp_remove(struct platform_device *pdev) | |||
1016 | uart_remove_one_port(&s->uart, &s->port[i]); | 1014 | uart_remove_one_port(&s->uart, &s->port[i]); |
1017 | 1015 | ||
1018 | uart_unregister_driver(&s->uart); | 1016 | uart_unregister_driver(&s->uart); |
1019 | platform_set_drvdata(pdev, NULL); | ||
1020 | 1017 | ||
1021 | if (!IS_ERR(s->regulator)) | 1018 | if (!IS_ERR(s->regulator)) |
1022 | return regulator_disable(s->regulator); | 1019 | return regulator_disable(s->regulator); |