of/platform: remove all of_bus_type and of_platform_bus_type references
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / sbus / char / flash.c
index 368d662..d79f386 100644 (file)
@@ -218,12 +218,12 @@ static struct of_platform_driver flash_driver = {
 
 static int __init flash_init(void)
 {
-       return of_register_driver(&flash_driver, &of_bus_type);
+       return of_register_platform_driver(&flash_driver);
 }
 
 static void __exit flash_cleanup(void)
 {
-       of_unregister_driver(&flash_driver);
+       of_unregister_platform_driver(&flash_driver);
 }
 
 module_init(flash_init);