OSDN Git Service

of/platform: remove all of_bus_type and of_platform_bus_type references
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / watchdog / cpwd.c
index 8c03fd7..30a2512 100644 (file)
@@ -688,12 +688,12 @@ static struct of_platform_driver cpwd_driver = {
 
 static int __init cpwd_init(void)
 {
-       return of_register_driver(&cpwd_driver, &of_bus_type);
+       return of_register_platform_driver(&cpwd_driver);
 }
 
 static void __exit cpwd_exit(void)
 {
-       of_unregister_driver(&cpwd_driver);
+       of_unregister_platform_driver(&cpwd_driver);
 }
 
 module_init(cpwd_init);