]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/sunlance.c
of/platform: remove all of_bus_type and of_platform_bus_type references
[karo-tx-linux.git] / drivers / net / sunlance.c
index c6bfdad6c0c806199d752ba91f09e8bacc78b8ac..ee364fa756342686d12618775790ea37a97f6e49 100644 (file)
@@ -1558,12 +1558,12 @@ static struct of_platform_driver sunlance_sbus_driver = {
 /* Find all the lance cards on the system and initialize them */
 static int __init sparc_lance_init(void)
 {
-       return of_register_driver(&sunlance_sbus_driver, &of_bus_type);
+       return of_register_platform_driver(&sunlance_sbus_driver);
 }
 
 static void __exit sparc_lance_exit(void)
 {
-       of_unregister_driver(&sunlance_sbus_driver);
+       of_unregister_platform_driver(&sunlance_sbus_driver);
 }
 
 module_init(sparc_lance_init);