]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/sbus/char/flash.c
of/platform: remove all of_bus_type and of_platform_bus_type references
[karo-tx-linux.git] / drivers / sbus / char / flash.c
index 368d66294d831ea8fdba4ef0e1e66c92b7f5fd87..d79f386c3486722c294406f522e17ab46e886db5 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);