From: David S. Miller Date: Fri, 6 Nov 2009 08:26:39 +0000 (-0800) Subject: apbuart: Fix build and missing driver unregister. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ddaf1b27edf72372242d752730d526b79312a44e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git apbuart: Fix build and missing driver unregister. linux/of_platform.h needs to be included OF driver needs to be unregistered Signed-off-by: David S. Miller --- diff --git a/drivers/serial/apbuart.c b/drivers/serial/apbuart.c index 5f9dec38db81..a1e95033da5b 100644 --- a/drivers/serial/apbuart.c +++ b/drivers/serial/apbuart.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -676,8 +677,7 @@ static int __init grlib_apbuart_init(void) return ret; } - ret = of_register_driver(&grlib_apbuart_of_driver, &of_platform_bus_type); - + ret = of_register_platform_driver(&grlib_apbuart_of_driver); if (ret) { printk(KERN_ERR "%s: of_register_platform_driver failed (%i)\n", @@ -698,7 +698,7 @@ static void __exit grlib_apbuart_exit(void) &grlib_apbuart_ports[i]); uart_unregister_driver(&grlib_apbuart_driver); - + of_unregister_platform_driver(&grlib_apbuart_of_driver); } module_init(grlib_apbuart_init);