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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);