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 / p9100.c
index 6552751..688b055 100644 (file)
@@ -367,12 +367,12 @@ static int __init p9100_init(void)
        if (fb_get_options("p9100fb", NULL))
                return -ENODEV;
 
-       return of_register_driver(&p9100_driver, &of_bus_type);
+       return of_register_platform_driver(&p9100_driver);
 }
 
 static void __exit p9100_exit(void)
 {
-       of_unregister_driver(&p9100_driver);
+       of_unregister_platform_driver(&p9100_driver);
 }
 
 module_init(p9100_init);