Commit 7a95b815 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18d8519d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment