diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index f6ecf6180f72..8cb2b30eccae 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -10251,14 +10251,14 @@ static int __init niu_init(void) | |||
10251 | niu_debug = netif_msg_init(debug, NIU_MSG_DEFAULT); | 10251 | niu_debug = netif_msg_init(debug, NIU_MSG_DEFAULT); |
10252 | 10252 | ||
10253 | #ifdef CONFIG_SPARC64 | 10253 | #ifdef CONFIG_SPARC64 |
10254 | err = of_register_driver(&niu_of_driver, &of_bus_type); | 10254 | err = of_register_platform_driver(&niu_of_driver); |
10255 | #endif | 10255 | #endif |
10256 | 10256 | ||
10257 | if (!err) { | 10257 | if (!err) { |
10258 | err = pci_register_driver(&niu_pci_driver); | 10258 | err = pci_register_driver(&niu_pci_driver); |
10259 | #ifdef CONFIG_SPARC64 | 10259 | #ifdef CONFIG_SPARC64 |
10260 | if (err) | 10260 | if (err) |
10261 | of_unregister_driver(&niu_of_driver); | 10261 | of_unregister_platform_driver(&niu_of_driver); |
10262 | #endif | 10262 | #endif |
10263 | } | 10263 | } |
10264 | 10264 | ||
@@ -10269,7 +10269,7 @@ static void __exit niu_exit(void) | |||
10269 | { | 10269 | { |
10270 | pci_unregister_driver(&niu_pci_driver); | 10270 | pci_unregister_driver(&niu_pci_driver); |
10271 | #ifdef CONFIG_SPARC64 | 10271 | #ifdef CONFIG_SPARC64 |
10272 | of_unregister_driver(&niu_of_driver); | 10272 | of_unregister_platform_driver(&niu_of_driver); |
10273 | #endif | 10273 | #endif |
10274 | } | 10274 | } |
10275 | 10275 | ||