aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hcd.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-02-22 23:08:34 -0500
committerGrant Likely <grant.likely@secretlab.ca>2011-02-28 15:22:45 -0500
commitd35fb6417655ebf6de93e2135dc386c3c470f545 (patch)
tree23eade825b224e48ab300017395ddd92db837da0 /drivers/usb/host/ohci-hcd.c
parent28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0 (diff)
dt/usb: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/usb. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r--drivers/usb/host/ohci-hcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 759a12ff8048..54240f6bd2db 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1180,7 +1180,7 @@ static int __init ohci_hcd_mod_init(void)
1180#endif 1180#endif
1181 1181
1182#ifdef OF_PLATFORM_DRIVER 1182#ifdef OF_PLATFORM_DRIVER
1183 retval = of_register_platform_driver(&OF_PLATFORM_DRIVER); 1183 retval = platform_driver_register(&OF_PLATFORM_DRIVER);
1184 if (retval < 0) 1184 if (retval < 0)
1185 goto error_of_platform; 1185 goto error_of_platform;
1186#endif 1186#endif
@@ -1239,7 +1239,7 @@ static int __init ohci_hcd_mod_init(void)
1239 error_sa1111: 1239 error_sa1111:
1240#endif 1240#endif
1241#ifdef OF_PLATFORM_DRIVER 1241#ifdef OF_PLATFORM_DRIVER
1242 of_unregister_platform_driver(&OF_PLATFORM_DRIVER); 1242 platform_driver_unregister(&OF_PLATFORM_DRIVER);
1243 error_of_platform: 1243 error_of_platform:
1244#endif 1244#endif
1245#ifdef PLATFORM_DRIVER 1245#ifdef PLATFORM_DRIVER
@@ -1287,7 +1287,7 @@ static void __exit ohci_hcd_mod_exit(void)
1287 sa1111_driver_unregister(&SA1111_DRIVER); 1287 sa1111_driver_unregister(&SA1111_DRIVER);
1288#endif 1288#endif
1289#ifdef OF_PLATFORM_DRIVER 1289#ifdef OF_PLATFORM_DRIVER
1290 of_unregister_platform_driver(&OF_PLATFORM_DRIVER); 1290 platform_driver_unregister(&OF_PLATFORM_DRIVER);
1291#endif 1291#endif
1292#ifdef PLATFORM_DRIVER 1292#ifdef PLATFORM_DRIVER
1293 platform_driver_unregister(&PLATFORM_DRIVER); 1293 platform_driver_unregister(&PLATFORM_DRIVER);