diff options
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index d30c4e08c137..78561d112c04 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -1317,24 +1317,24 @@ static int __init ehci_hcd_init(void) | |||
1317 | #endif | 1317 | #endif |
1318 | 1318 | ||
1319 | #ifdef OF_PLATFORM_DRIVER | 1319 | #ifdef OF_PLATFORM_DRIVER |
1320 | retval = of_register_platform_driver(&OF_PLATFORM_DRIVER); | 1320 | retval = platform_driver_register(&OF_PLATFORM_DRIVER); |
1321 | if (retval < 0) | 1321 | if (retval < 0) |
1322 | goto clean3; | 1322 | goto clean3; |
1323 | #endif | 1323 | #endif |
1324 | 1324 | ||
1325 | #ifdef XILINX_OF_PLATFORM_DRIVER | 1325 | #ifdef XILINX_OF_PLATFORM_DRIVER |
1326 | retval = of_register_platform_driver(&XILINX_OF_PLATFORM_DRIVER); | 1326 | retval = platform_driver_register(&XILINX_OF_PLATFORM_DRIVER); |
1327 | if (retval < 0) | 1327 | if (retval < 0) |
1328 | goto clean4; | 1328 | goto clean4; |
1329 | #endif | 1329 | #endif |
1330 | return retval; | 1330 | return retval; |
1331 | 1331 | ||
1332 | #ifdef XILINX_OF_PLATFORM_DRIVER | 1332 | #ifdef XILINX_OF_PLATFORM_DRIVER |
1333 | /* of_unregister_platform_driver(&XILINX_OF_PLATFORM_DRIVER); */ | 1333 | /* platform_driver_unregister(&XILINX_OF_PLATFORM_DRIVER); */ |
1334 | clean4: | 1334 | clean4: |
1335 | #endif | 1335 | #endif |
1336 | #ifdef OF_PLATFORM_DRIVER | 1336 | #ifdef OF_PLATFORM_DRIVER |
1337 | of_unregister_platform_driver(&OF_PLATFORM_DRIVER); | 1337 | platform_driver_unregister(&OF_PLATFORM_DRIVER); |
1338 | clean3: | 1338 | clean3: |
1339 | #endif | 1339 | #endif |
1340 | #ifdef PS3_SYSTEM_BUS_DRIVER | 1340 | #ifdef PS3_SYSTEM_BUS_DRIVER |
@@ -1362,10 +1362,10 @@ module_init(ehci_hcd_init); | |||
1362 | static void __exit ehci_hcd_cleanup(void) | 1362 | static void __exit ehci_hcd_cleanup(void) |
1363 | { | 1363 | { |
1364 | #ifdef XILINX_OF_PLATFORM_DRIVER | 1364 | #ifdef XILINX_OF_PLATFORM_DRIVER |
1365 | of_unregister_platform_driver(&XILINX_OF_PLATFORM_DRIVER); | 1365 | platform_driver_unregister(&XILINX_OF_PLATFORM_DRIVER); |
1366 | #endif | 1366 | #endif |
1367 | #ifdef OF_PLATFORM_DRIVER | 1367 | #ifdef OF_PLATFORM_DRIVER |
1368 | of_unregister_platform_driver(&OF_PLATFORM_DRIVER); | 1368 | platform_driver_unregister(&OF_PLATFORM_DRIVER); |
1369 | #endif | 1369 | #endif |
1370 | #ifdef PLATFORM_DRIVER | 1370 | #ifdef PLATFORM_DRIVER |
1371 | platform_driver_unregister(&PLATFORM_DRIVER); | 1371 | platform_driver_unregister(&PLATFORM_DRIVER); |