diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
commit | 4c5811bf463b0ef82fabbd1708f8bb2d753aeb18 (patch) | |
tree | ff37d31217c3804ca05de21a55a9b5ca1ca818b2 /drivers/usb | |
parent | f74b9444192c60603020c61d7915b72893137edc (diff) | |
parent | 9f15444fefdb33509132ff5c9be60cb315c44cb2 (diff) |
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
tty: serial: altera_jtaguart: Add device tree support
tty: serial: altera_uart: Add devicetree support
dt: eliminate of_platform_driver shim code
dt: Eliminate of_platform_{,un}register_driver
dt/serial: Eliminate users of of_platform_{,un}register_driver
dt/usb: Eliminate users of of_platform_{,un}register_driver
dt/video: Eliminate users of of_platform_{,un}register_driver
dt/net: Eliminate users of of_platform_{,un}register_driver
dt/sound: Eliminate users of of_platform_{,un}register_driver
dt/spi: Eliminate users of of_platform_{,un}register_driver
dt: uartlite: merge platform and of_platform driver bindings
dt: xilinx_hwicap: merge platform and of_platform driver bindings
ipmi: convert OF driver to platform driver
leds/leds-gpio: merge platform_driver with of_platform_driver
dt/sparc: Eliminate users of of_platform_{,un}register_driver
dt/powerpc: Eliminate users of of_platform_{,un}register_driver
dt/powerpc: move of_bus_type infrastructure to ibmebus
drivercore/dt: add a match table pointer to struct device
dt: Typo fix.
altera_ps2: Add devicetree support
...
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/fsl_qe_udc.c | 14 | ||||
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 12 | ||||
-rw-r--r-- | drivers/usb/host/ehci-ppc-of.c | 9 | ||||
-rw-r--r-- | drivers/usb/host/ehci-xilinx-of.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/fhci-hcd.c | 9 | ||||
-rw-r--r-- | drivers/usb/host/isp1760-if.c | 9 | ||||
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-of.c | 9 |
8 files changed, 33 insertions, 41 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index 792d5ef40137..aee7e3c53c38 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c | |||
@@ -2523,8 +2523,7 @@ static void qe_udc_release(struct device *dev) | |||
2523 | } | 2523 | } |
2524 | 2524 | ||
2525 | /* Driver probe functions */ | 2525 | /* Driver probe functions */ |
2526 | static int __devinit qe_udc_probe(struct platform_device *ofdev, | 2526 | static int __devinit qe_udc_probe(struct platform_device *ofdev) |
2527 | const struct of_device_id *match) | ||
2528 | { | 2527 | { |
2529 | struct device_node *np = ofdev->dev.of_node; | 2528 | struct device_node *np = ofdev->dev.of_node; |
2530 | struct qe_ep *ep; | 2529 | struct qe_ep *ep; |
@@ -2532,6 +2531,9 @@ static int __devinit qe_udc_probe(struct platform_device *ofdev, | |||
2532 | unsigned int i; | 2531 | unsigned int i; |
2533 | const void *prop; | 2532 | const void *prop; |
2534 | 2533 | ||
2534 | if (!ofdev->dev.of_match) | ||
2535 | return -EINVAL; | ||
2536 | |||
2535 | prop = of_get_property(np, "mode", NULL); | 2537 | prop = of_get_property(np, "mode", NULL); |
2536 | if (!prop || strcmp(prop, "peripheral")) | 2538 | if (!prop || strcmp(prop, "peripheral")) |
2537 | return -ENODEV; | 2539 | return -ENODEV; |
@@ -2543,7 +2545,7 @@ static int __devinit qe_udc_probe(struct platform_device *ofdev, | |||
2543 | return -ENOMEM; | 2545 | return -ENOMEM; |
2544 | } | 2546 | } |
2545 | 2547 | ||
2546 | udc_controller->soc_type = (unsigned long)match->data; | 2548 | udc_controller->soc_type = (unsigned long)ofdev->dev.of_match->data; |
2547 | udc_controller->usb_regs = of_iomap(np, 0); | 2549 | udc_controller->usb_regs = of_iomap(np, 0); |
2548 | if (!udc_controller->usb_regs) { | 2550 | if (!udc_controller->usb_regs) { |
2549 | ret = -ENOMEM; | 2551 | ret = -ENOMEM; |
@@ -2768,7 +2770,7 @@ static const struct of_device_id qe_udc_match[] __devinitconst = { | |||
2768 | 2770 | ||
2769 | MODULE_DEVICE_TABLE(of, qe_udc_match); | 2771 | MODULE_DEVICE_TABLE(of, qe_udc_match); |
2770 | 2772 | ||
2771 | static struct of_platform_driver udc_driver = { | 2773 | static struct platform_driver udc_driver = { |
2772 | .driver = { | 2774 | .driver = { |
2773 | .name = (char *)driver_name, | 2775 | .name = (char *)driver_name, |
2774 | .owner = THIS_MODULE, | 2776 | .owner = THIS_MODULE, |
@@ -2786,12 +2788,12 @@ static int __init qe_udc_init(void) | |||
2786 | { | 2788 | { |
2787 | printk(KERN_INFO "%s: %s, %s\n", driver_name, driver_desc, | 2789 | printk(KERN_INFO "%s: %s, %s\n", driver_name, driver_desc, |
2788 | DRIVER_VERSION); | 2790 | DRIVER_VERSION); |
2789 | return of_register_platform_driver(&udc_driver); | 2791 | return platform_driver_register(&udc_driver); |
2790 | } | 2792 | } |
2791 | 2793 | ||
2792 | static void __exit qe_udc_exit(void) | 2794 | static void __exit qe_udc_exit(void) |
2793 | { | 2795 | { |
2794 | of_unregister_platform_driver(&udc_driver); | 2796 | platform_driver_unregister(&udc_driver); |
2795 | } | 2797 | } |
2796 | 2798 | ||
2797 | module_init(qe_udc_init); | 2799 | module_init(qe_udc_init); |
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); |
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c index ba52be473027..1f09f253697e 100644 --- a/drivers/usb/host/ehci-ppc-of.c +++ b/drivers/usb/host/ehci-ppc-of.c | |||
@@ -105,8 +105,7 @@ ppc44x_enable_bmt(struct device_node *dn) | |||
105 | } | 105 | } |
106 | 106 | ||
107 | 107 | ||
108 | static int __devinit | 108 | static int __devinit ehci_hcd_ppc_of_probe(struct platform_device *op) |
109 | ehci_hcd_ppc_of_probe(struct platform_device *op, const struct of_device_id *match) | ||
110 | { | 109 | { |
111 | struct device_node *dn = op->dev.of_node; | 110 | struct device_node *dn = op->dev.of_node; |
112 | struct usb_hcd *hcd; | 111 | struct usb_hcd *hcd; |
@@ -255,14 +254,12 @@ static int ehci_hcd_ppc_of_remove(struct platform_device *op) | |||
255 | } | 254 | } |
256 | 255 | ||
257 | 256 | ||
258 | static int ehci_hcd_ppc_of_shutdown(struct platform_device *op) | 257 | static void ehci_hcd_ppc_of_shutdown(struct platform_device *op) |
259 | { | 258 | { |
260 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 259 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); |
261 | 260 | ||
262 | if (hcd->driver->shutdown) | 261 | if (hcd->driver->shutdown) |
263 | hcd->driver->shutdown(hcd); | 262 | hcd->driver->shutdown(hcd); |
264 | |||
265 | return 0; | ||
266 | } | 263 | } |
267 | 264 | ||
268 | 265 | ||
@@ -275,7 +272,7 @@ static const struct of_device_id ehci_hcd_ppc_of_match[] = { | |||
275 | MODULE_DEVICE_TABLE(of, ehci_hcd_ppc_of_match); | 272 | MODULE_DEVICE_TABLE(of, ehci_hcd_ppc_of_match); |
276 | 273 | ||
277 | 274 | ||
278 | static struct of_platform_driver ehci_hcd_ppc_of_driver = { | 275 | static struct platform_driver ehci_hcd_ppc_of_driver = { |
279 | .probe = ehci_hcd_ppc_of_probe, | 276 | .probe = ehci_hcd_ppc_of_probe, |
280 | .remove = ehci_hcd_ppc_of_remove, | 277 | .remove = ehci_hcd_ppc_of_remove, |
281 | .shutdown = ehci_hcd_ppc_of_shutdown, | 278 | .shutdown = ehci_hcd_ppc_of_shutdown, |
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index a6f21b891f68..effc58d7af8b 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
@@ -143,15 +143,13 @@ static const struct hc_driver ehci_xilinx_of_hc_driver = { | |||
143 | /** | 143 | /** |
144 | * ehci_hcd_xilinx_of_probe - Probe method for the USB host controller | 144 | * ehci_hcd_xilinx_of_probe - Probe method for the USB host controller |
145 | * @op: pointer to the platform_device bound to the host controller | 145 | * @op: pointer to the platform_device bound to the host controller |
146 | * @match: pointer to of_device_id structure, not used | ||
147 | * | 146 | * |
148 | * This function requests resources and sets up appropriate properties for the | 147 | * This function requests resources and sets up appropriate properties for the |
149 | * host controller. Because the Xilinx USB host controller can be configured | 148 | * host controller. Because the Xilinx USB host controller can be configured |
150 | * as HS only or HS/FS only, it checks the configuration in the device tree | 149 | * as HS only or HS/FS only, it checks the configuration in the device tree |
151 | * entry, and sets an appropriate value for hcd->has_tt. | 150 | * entry, and sets an appropriate value for hcd->has_tt. |
152 | */ | 151 | */ |
153 | static int __devinit | 152 | static int __devinit ehci_hcd_xilinx_of_probe(struct platform_device *op) |
154 | ehci_hcd_xilinx_of_probe(struct platform_device *op, const struct of_device_id *match) | ||
155 | { | 153 | { |
156 | struct device_node *dn = op->dev.of_node; | 154 | struct device_node *dn = op->dev.of_node; |
157 | struct usb_hcd *hcd; | 155 | struct usb_hcd *hcd; |
@@ -289,7 +287,7 @@ static const struct of_device_id ehci_hcd_xilinx_of_match[] = { | |||
289 | }; | 287 | }; |
290 | MODULE_DEVICE_TABLE(of, ehci_hcd_xilinx_of_match); | 288 | MODULE_DEVICE_TABLE(of, ehci_hcd_xilinx_of_match); |
291 | 289 | ||
292 | static struct of_platform_driver ehci_hcd_xilinx_of_driver = { | 290 | static struct platform_driver ehci_hcd_xilinx_of_driver = { |
293 | .probe = ehci_hcd_xilinx_of_probe, | 291 | .probe = ehci_hcd_xilinx_of_probe, |
294 | .remove = ehci_hcd_xilinx_of_remove, | 292 | .remove = ehci_hcd_xilinx_of_remove, |
295 | .shutdown = ehci_hcd_xilinx_of_shutdown, | 293 | .shutdown = ehci_hcd_xilinx_of_shutdown, |
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c index 12fd184226f2..b84ff7e51896 100644 --- a/drivers/usb/host/fhci-hcd.c +++ b/drivers/usb/host/fhci-hcd.c | |||
@@ -561,8 +561,7 @@ static const struct hc_driver fhci_driver = { | |||
561 | .hub_control = fhci_hub_control, | 561 | .hub_control = fhci_hub_control, |
562 | }; | 562 | }; |
563 | 563 | ||
564 | static int __devinit of_fhci_probe(struct platform_device *ofdev, | 564 | static int __devinit of_fhci_probe(struct platform_device *ofdev) |
565 | const struct of_device_id *ofid) | ||
566 | { | 565 | { |
567 | struct device *dev = &ofdev->dev; | 566 | struct device *dev = &ofdev->dev; |
568 | struct device_node *node = dev->of_node; | 567 | struct device_node *node = dev->of_node; |
@@ -812,7 +811,7 @@ static const struct of_device_id of_fhci_match[] = { | |||
812 | }; | 811 | }; |
813 | MODULE_DEVICE_TABLE(of, of_fhci_match); | 812 | MODULE_DEVICE_TABLE(of, of_fhci_match); |
814 | 813 | ||
815 | static struct of_platform_driver of_fhci_driver = { | 814 | static struct platform_driver of_fhci_driver = { |
816 | .driver = { | 815 | .driver = { |
817 | .name = "fsl,usb-fhci", | 816 | .name = "fsl,usb-fhci", |
818 | .owner = THIS_MODULE, | 817 | .owner = THIS_MODULE, |
@@ -824,13 +823,13 @@ static struct of_platform_driver of_fhci_driver = { | |||
824 | 823 | ||
825 | static int __init fhci_module_init(void) | 824 | static int __init fhci_module_init(void) |
826 | { | 825 | { |
827 | return of_register_platform_driver(&of_fhci_driver); | 826 | return platform_driver_register(&of_fhci_driver); |
828 | } | 827 | } |
829 | module_init(fhci_module_init); | 828 | module_init(fhci_module_init); |
830 | 829 | ||
831 | static void __exit fhci_module_exit(void) | 830 | static void __exit fhci_module_exit(void) |
832 | { | 831 | { |
833 | of_unregister_platform_driver(&of_fhci_driver); | 832 | platform_driver_unregister(&of_fhci_driver); |
834 | } | 833 | } |
835 | module_exit(fhci_module_exit); | 834 | module_exit(fhci_module_exit); |
836 | 835 | ||
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index 3b28dbfca058..7ee30056f373 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c | |||
@@ -27,8 +27,7 @@ | |||
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #ifdef CONFIG_PPC_OF | 29 | #ifdef CONFIG_PPC_OF |
30 | static int of_isp1760_probe(struct platform_device *dev, | 30 | static int of_isp1760_probe(struct platform_device *dev) |
31 | const struct of_device_id *match) | ||
32 | { | 31 | { |
33 | struct usb_hcd *hcd; | 32 | struct usb_hcd *hcd; |
34 | struct device_node *dp = dev->dev.of_node; | 33 | struct device_node *dp = dev->dev.of_node; |
@@ -119,7 +118,7 @@ static const struct of_device_id of_isp1760_match[] = { | |||
119 | }; | 118 | }; |
120 | MODULE_DEVICE_TABLE(of, of_isp1760_match); | 119 | MODULE_DEVICE_TABLE(of, of_isp1760_match); |
121 | 120 | ||
122 | static struct of_platform_driver isp1760_of_driver = { | 121 | static struct platform_driver isp1760_of_driver = { |
123 | .driver = { | 122 | .driver = { |
124 | .name = "nxp-isp1760", | 123 | .name = "nxp-isp1760", |
125 | .owner = THIS_MODULE, | 124 | .owner = THIS_MODULE, |
@@ -398,7 +397,7 @@ static int __init isp1760_init(void) | |||
398 | if (!ret) | 397 | if (!ret) |
399 | any_ret = 0; | 398 | any_ret = 0; |
400 | #ifdef CONFIG_PPC_OF | 399 | #ifdef CONFIG_PPC_OF |
401 | ret = of_register_platform_driver(&isp1760_of_driver); | 400 | ret = platform_driver_register(&isp1760_of_driver); |
402 | if (!ret) | 401 | if (!ret) |
403 | any_ret = 0; | 402 | any_ret = 0; |
404 | #endif | 403 | #endif |
@@ -418,7 +417,7 @@ static void __exit isp1760_exit(void) | |||
418 | { | 417 | { |
419 | platform_driver_unregister(&isp1760_plat_driver); | 418 | platform_driver_unregister(&isp1760_plat_driver); |
420 | #ifdef CONFIG_PPC_OF | 419 | #ifdef CONFIG_PPC_OF |
421 | of_unregister_platform_driver(&isp1760_of_driver); | 420 | platform_driver_unregister(&isp1760_of_driver); |
422 | #endif | 421 | #endif |
423 | #ifdef CONFIG_PCI | 422 | #ifdef CONFIG_PCI |
424 | pci_unregister_driver(&isp1761_pci_driver); | 423 | pci_unregister_driver(&isp1761_pci_driver); |
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index fb035751e4b2..f4062bba9d04 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -1168,7 +1168,7 @@ static int __init ohci_hcd_mod_init(void) | |||
1168 | #endif | 1168 | #endif |
1169 | 1169 | ||
1170 | #ifdef OF_PLATFORM_DRIVER | 1170 | #ifdef OF_PLATFORM_DRIVER |
1171 | retval = of_register_platform_driver(&OF_PLATFORM_DRIVER); | 1171 | retval = platform_driver_register(&OF_PLATFORM_DRIVER); |
1172 | if (retval < 0) | 1172 | if (retval < 0) |
1173 | goto error_of_platform; | 1173 | goto error_of_platform; |
1174 | #endif | 1174 | #endif |
@@ -1227,7 +1227,7 @@ static int __init ohci_hcd_mod_init(void) | |||
1227 | error_sa1111: | 1227 | error_sa1111: |
1228 | #endif | 1228 | #endif |
1229 | #ifdef OF_PLATFORM_DRIVER | 1229 | #ifdef OF_PLATFORM_DRIVER |
1230 | of_unregister_platform_driver(&OF_PLATFORM_DRIVER); | 1230 | platform_driver_unregister(&OF_PLATFORM_DRIVER); |
1231 | error_of_platform: | 1231 | error_of_platform: |
1232 | #endif | 1232 | #endif |
1233 | #ifdef PLATFORM_DRIVER | 1233 | #ifdef PLATFORM_DRIVER |
@@ -1275,7 +1275,7 @@ static void __exit ohci_hcd_mod_exit(void) | |||
1275 | sa1111_driver_unregister(&SA1111_DRIVER); | 1275 | sa1111_driver_unregister(&SA1111_DRIVER); |
1276 | #endif | 1276 | #endif |
1277 | #ifdef OF_PLATFORM_DRIVER | 1277 | #ifdef OF_PLATFORM_DRIVER |
1278 | of_unregister_platform_driver(&OF_PLATFORM_DRIVER); | 1278 | platform_driver_unregister(&OF_PLATFORM_DRIVER); |
1279 | #endif | 1279 | #endif |
1280 | #ifdef PLATFORM_DRIVER | 1280 | #ifdef PLATFORM_DRIVER |
1281 | platform_driver_unregister(&PLATFORM_DRIVER); | 1281 | platform_driver_unregister(&PLATFORM_DRIVER); |
diff --git a/drivers/usb/host/ohci-ppc-of.c b/drivers/usb/host/ohci-ppc-of.c index b2c2dbf08766..1ca1821320f4 100644 --- a/drivers/usb/host/ohci-ppc-of.c +++ b/drivers/usb/host/ohci-ppc-of.c | |||
@@ -80,8 +80,7 @@ static const struct hc_driver ohci_ppc_of_hc_driver = { | |||
80 | }; | 80 | }; |
81 | 81 | ||
82 | 82 | ||
83 | static int __devinit | 83 | static int __devinit ohci_hcd_ppc_of_probe(struct platform_device *op) |
84 | ohci_hcd_ppc_of_probe(struct platform_device *op, const struct of_device_id *match) | ||
85 | { | 84 | { |
86 | struct device_node *dn = op->dev.of_node; | 85 | struct device_node *dn = op->dev.of_node; |
87 | struct usb_hcd *hcd; | 86 | struct usb_hcd *hcd; |
@@ -201,14 +200,12 @@ static int ohci_hcd_ppc_of_remove(struct platform_device *op) | |||
201 | return 0; | 200 | return 0; |
202 | } | 201 | } |
203 | 202 | ||
204 | static int ohci_hcd_ppc_of_shutdown(struct platform_device *op) | 203 | static void ohci_hcd_ppc_of_shutdown(struct platform_device *op) |
205 | { | 204 | { |
206 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 205 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); |
207 | 206 | ||
208 | if (hcd->driver->shutdown) | 207 | if (hcd->driver->shutdown) |
209 | hcd->driver->shutdown(hcd); | 208 | hcd->driver->shutdown(hcd); |
210 | |||
211 | return 0; | ||
212 | } | 209 | } |
213 | 210 | ||
214 | 211 | ||
@@ -243,7 +240,7 @@ MODULE_DEVICE_TABLE(of, ohci_hcd_ppc_of_match); | |||
243 | #endif | 240 | #endif |
244 | 241 | ||
245 | 242 | ||
246 | static struct of_platform_driver ohci_hcd_ppc_of_driver = { | 243 | static struct platform_driver ohci_hcd_ppc_of_driver = { |
247 | .probe = ohci_hcd_ppc_of_probe, | 244 | .probe = ohci_hcd_ppc_of_probe, |
248 | .remove = ohci_hcd_ppc_of_remove, | 245 | .remove = ohci_hcd_ppc_of_remove, |
249 | .shutdown = ohci_hcd_ppc_of_shutdown, | 246 | .shutdown = ohci_hcd_ppc_of_shutdown, |