OSDN Git Service

of/platform: remove all of_bus_type and of_platform_bus_type references
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / video / sunxvr1000.c
index 489b44e..7288934 100644 (file)
@@ -213,12 +213,12 @@ static int __init gfb_init(void)
        if (fb_get_options("gfb", NULL))
                return -ENODEV;
 
-       return of_register_driver(&gfb_driver, &of_bus_type);
+       return of_register_platform_driver(&gfb_driver);
 }
 
 static void __exit gfb_exit(void)
 {
-       of_unregister_driver(&gfb_driver);
+       of_unregister_platform_driver(&gfb_driver);
 }
 
 module_init(gfb_init);