Skip to content
Snippets Groups Projects
Commit ad348cc5 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

serial: sunsu: add missing platform_driver_unregister() when module exit


We have registered platform driver when module init, and
need unregister it when module exit.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e4741e7
No related branches found
No related tags found
No related merge requests found
...@@ -1592,6 +1592,7 @@ static int __init sunsu_init(void) ...@@ -1592,6 +1592,7 @@ static int __init sunsu_init(void)
static void __exit sunsu_exit(void) static void __exit sunsu_exit(void)
{ {
platform_driver_unregister(&su_driver);
if (sunsu_reg.nr) if (sunsu_reg.nr)
sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr); sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment