aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/apbuart.c6
1 files changed, 3 insertions, 3 deletions
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 @@
25#include <linux/device.h> 25#include <linux/device.h>
26#include <linux/of.h> 26#include <linux/of.h>
27#include <linux/of_device.h> 27#include <linux/of_device.h>
28#include <linux/of_platform.h>
28#include <linux/platform_device.h> 29#include <linux/platform_device.h>
29#include <linux/io.h> 30#include <linux/io.h>
30#include <linux/serial_core.h> 31#include <linux/serial_core.h>
@@ -676,8 +677,7 @@ static int __init grlib_apbuart_init(void)
676 return ret; 677 return ret;
677 } 678 }
678 679
679 ret = of_register_driver(&grlib_apbuart_of_driver, &of_platform_bus_type); 680 ret = of_register_platform_driver(&grlib_apbuart_of_driver);
680
681 if (ret) { 681 if (ret) {
682 printk(KERN_ERR 682 printk(KERN_ERR
683 "%s: of_register_platform_driver failed (%i)\n", 683 "%s: of_register_platform_driver failed (%i)\n",
@@ -698,7 +698,7 @@ static void __exit grlib_apbuart_exit(void)
698 &grlib_apbuart_ports[i]); 698 &grlib_apbuart_ports[i]);
699 699
700 uart_unregister_driver(&grlib_apbuart_driver); 700 uart_unregister_driver(&grlib_apbuart_driver);
701 701 of_unregister_platform_driver(&grlib_apbuart_of_driver);
702} 702}
703 703
704module_init(grlib_apbuart_init); 704module_init(grlib_apbuart_init);