aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-16 20:28:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-16 20:28:10 -0400
commit4c5811bf463b0ef82fabbd1708f8bb2d753aeb18 (patch)
treeff37d31217c3804ca05de21a55a9b5ca1ca818b2 /drivers/usb/host
parentf74b9444192c60603020c61d7915b72893137edc (diff)
parent9f15444fefdb33509132ff5c9be60cb315c44cb2 (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/host')
-rw-r--r--drivers/usb/host/ehci-hcd.c12
-rw-r--r--drivers/usb/host/ehci-ppc-of.c9
-rw-r--r--drivers/usb/host/ehci-xilinx-of.c6
-rw-r--r--drivers/usb/host/fhci-hcd.c9
-rw-r--r--drivers/usb/host/isp1760-if.c9
-rw-r--r--drivers/usb/host/ohci-hcd.c6
-rw-r--r--drivers/usb/host/ohci-ppc-of.c9
7 files changed, 25 insertions, 35 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); */
1334clean4: 1334clean4:
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);
1338clean3: 1338clean3:
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);
1362static void __exit ehci_hcd_cleanup(void) 1362static 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
108static int __devinit 108static int __devinit ehci_hcd_ppc_of_probe(struct platform_device *op)
109ehci_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
258static int ehci_hcd_ppc_of_shutdown(struct platform_device *op) 257static 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[] = {
275MODULE_DEVICE_TABLE(of, ehci_hcd_ppc_of_match); 272MODULE_DEVICE_TABLE(of, ehci_hcd_ppc_of_match);
276 273
277 274
278static struct of_platform_driver ehci_hcd_ppc_of_driver = { 275static 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 */
153static int __devinit 152static int __devinit ehci_hcd_xilinx_of_probe(struct platform_device *op)
154ehci_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};
290MODULE_DEVICE_TABLE(of, ehci_hcd_xilinx_of_match); 288MODULE_DEVICE_TABLE(of, ehci_hcd_xilinx_of_match);
291 289
292static struct of_platform_driver ehci_hcd_xilinx_of_driver = { 290static 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
564static int __devinit of_fhci_probe(struct platform_device *ofdev, 564static 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};
813MODULE_DEVICE_TABLE(of, of_fhci_match); 812MODULE_DEVICE_TABLE(of, of_fhci_match);
814 813
815static struct of_platform_driver of_fhci_driver = { 814static 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
825static int __init fhci_module_init(void) 824static 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}
829module_init(fhci_module_init); 828module_init(fhci_module_init);
830 829
831static void __exit fhci_module_exit(void) 830static 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}
835module_exit(fhci_module_exit); 834module_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
30static int of_isp1760_probe(struct platform_device *dev, 30static 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};
120MODULE_DEVICE_TABLE(of, of_isp1760_match); 119MODULE_DEVICE_TABLE(of, of_isp1760_match);
121 120
122static struct of_platform_driver isp1760_of_driver = { 121static 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
83static int __devinit 83static int __devinit ohci_hcd_ppc_of_probe(struct platform_device *op)
84ohci_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
204static int ohci_hcd_ppc_of_shutdown(struct platform_device *op) 203static 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
246static struct of_platform_driver ohci_hcd_ppc_of_driver = { 243static 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,