Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: samsung: 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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wei Yongjun and committed by
Greg Kroah-Hartman
a82ea439 f6b6f52b

+1
+1
drivers/tty/serial/samsung.c
··· 1803 1803 1804 1804 static void __exit s3c24xx_serial_modexit(void) 1805 1805 { 1806 + platform_driver_unregister(&samsung_serial_driver); 1806 1807 uart_unregister_driver(&s3c24xx_uart_drv); 1807 1808 } 1808 1809