diff options
Diffstat (limited to 'drivers/usb/host/ssb-hcd.c')
-rw-r--r-- | drivers/usb/host/ssb-hcd.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/usb/host/ssb-hcd.c b/drivers/usb/host/ssb-hcd.c index c2a29faba076..74af2c6287d2 100644 --- a/drivers/usb/host/ssb-hcd.c +++ b/drivers/usb/host/ssb-hcd.c | |||
@@ -39,7 +39,7 @@ struct ssb_hcd_device { | |||
39 | u32 enable_flags; | 39 | u32 enable_flags; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | static void __devinit ssb_hcd_5354wa(struct ssb_device *dev) | 42 | static void ssb_hcd_5354wa(struct ssb_device *dev) |
43 | { | 43 | { |
44 | #ifdef CONFIG_SSB_DRIVER_MIPS | 44 | #ifdef CONFIG_SSB_DRIVER_MIPS |
45 | /* Work around for 5354 failures */ | 45 | /* Work around for 5354 failures */ |
@@ -53,7 +53,7 @@ static void __devinit ssb_hcd_5354wa(struct ssb_device *dev) | |||
53 | #endif | 53 | #endif |
54 | } | 54 | } |
55 | 55 | ||
56 | static void __devinit ssb_hcd_usb20wa(struct ssb_device *dev) | 56 | static void ssb_hcd_usb20wa(struct ssb_device *dev) |
57 | { | 57 | { |
58 | if (dev->id.coreid == SSB_DEV_USB20_HOST) { | 58 | if (dev->id.coreid == SSB_DEV_USB20_HOST) { |
59 | /* | 59 | /* |
@@ -80,7 +80,7 @@ static void __devinit ssb_hcd_usb20wa(struct ssb_device *dev) | |||
80 | } | 80 | } |
81 | 81 | ||
82 | /* based on arch/mips/brcm-boards/bcm947xx/pcibios.c */ | 82 | /* based on arch/mips/brcm-boards/bcm947xx/pcibios.c */ |
83 | static u32 __devinit ssb_hcd_init_chip(struct ssb_device *dev) | 83 | static u32 ssb_hcd_init_chip(struct ssb_device *dev) |
84 | { | 84 | { |
85 | u32 flags = 0; | 85 | u32 flags = 0; |
86 | 86 | ||
@@ -101,8 +101,7 @@ static const struct usb_ehci_pdata ehci_pdata = { | |||
101 | static const struct usb_ohci_pdata ohci_pdata = { | 101 | static const struct usb_ohci_pdata ohci_pdata = { |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static struct platform_device * __devinit | 104 | static struct platform_device *ssb_hcd_create_pdev(struct ssb_device *dev, bool ohci, u32 addr, u32 len) |
105 | ssb_hcd_create_pdev(struct ssb_device *dev, bool ohci, u32 addr, u32 len) | ||
106 | { | 105 | { |
107 | struct platform_device *hci_dev; | 106 | struct platform_device *hci_dev; |
108 | struct resource hci_res[2]; | 107 | struct resource hci_res[2]; |
@@ -148,7 +147,7 @@ err_alloc: | |||
148 | return ERR_PTR(ret); | 147 | return ERR_PTR(ret); |
149 | } | 148 | } |
150 | 149 | ||
151 | static int __devinit ssb_hcd_probe(struct ssb_device *dev, | 150 | static int ssb_hcd_probe(struct ssb_device *dev, |
152 | const struct ssb_device_id *id) | 151 | const struct ssb_device_id *id) |
153 | { | 152 | { |
154 | int err, tmp; | 153 | int err, tmp; |
@@ -207,7 +206,7 @@ err_free_usb_dev: | |||
207 | return err; | 206 | return err; |
208 | } | 207 | } |
209 | 208 | ||
210 | static void __devexit ssb_hcd_remove(struct ssb_device *dev) | 209 | static void ssb_hcd_remove(struct ssb_device *dev) |
211 | { | 210 | { |
212 | struct ssb_hcd_device *usb_dev = ssb_get_drvdata(dev); | 211 | struct ssb_hcd_device *usb_dev = ssb_get_drvdata(dev); |
213 | struct platform_device *ohci_dev = usb_dev->ohci_dev; | 212 | struct platform_device *ohci_dev = usb_dev->ohci_dev; |
@@ -221,7 +220,7 @@ static void __devexit ssb_hcd_remove(struct ssb_device *dev) | |||
221 | ssb_device_disable(dev, 0); | 220 | ssb_device_disable(dev, 0); |
222 | } | 221 | } |
223 | 222 | ||
224 | static void __devexit ssb_hcd_shutdown(struct ssb_device *dev) | 223 | static void ssb_hcd_shutdown(struct ssb_device *dev) |
225 | { | 224 | { |
226 | ssb_device_disable(dev, 0); | 225 | ssb_device_disable(dev, 0); |
227 | } | 226 | } |
@@ -249,7 +248,7 @@ static int ssb_hcd_resume(struct ssb_device *dev) | |||
249 | #define ssb_hcd_resume NULL | 248 | #define ssb_hcd_resume NULL |
250 | #endif /* CONFIG_PM */ | 249 | #endif /* CONFIG_PM */ |
251 | 250 | ||
252 | static const struct ssb_device_id ssb_hcd_table[] __devinitconst = { | 251 | static const struct ssb_device_id ssb_hcd_table[] = { |
253 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOSTDEV, SSB_ANY_REV), | 252 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOSTDEV, SSB_ANY_REV), |
254 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOST, SSB_ANY_REV), | 253 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOST, SSB_ANY_REV), |
255 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB20_HOST, SSB_ANY_REV), | 254 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB20_HOST, SSB_ANY_REV), |
@@ -261,7 +260,7 @@ static struct ssb_driver ssb_hcd_driver = { | |||
261 | .name = KBUILD_MODNAME, | 260 | .name = KBUILD_MODNAME, |
262 | .id_table = ssb_hcd_table, | 261 | .id_table = ssb_hcd_table, |
263 | .probe = ssb_hcd_probe, | 262 | .probe = ssb_hcd_probe, |
264 | .remove = __devexit_p(ssb_hcd_remove), | 263 | .remove = ssb_hcd_remove, |
265 | .shutdown = ssb_hcd_shutdown, | 264 | .shutdown = ssb_hcd_shutdown, |
266 | .suspend = ssb_hcd_suspend, | 265 | .suspend = ssb_hcd_suspend, |
267 | .resume = ssb_hcd_resume, | 266 | .resume = ssb_hcd_resume, |