diff options
Diffstat (limited to 'drivers/usb/host/ohci-at91.c')
| -rw-r--r-- | drivers/usb/host/ohci-at91.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 0bf72f943b00..a0cb44f0e724 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
| @@ -16,11 +16,11 @@ | |||
| 16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/of_platform.h> | 17 | #include <linux/of_platform.h> |
| 18 | #include <linux/of_gpio.h> | 18 | #include <linux/of_gpio.h> |
| 19 | #include <linux/platform_data/atmel.h> | ||
| 19 | 20 | ||
| 20 | #include <mach/hardware.h> | 21 | #include <mach/hardware.h> |
| 21 | #include <asm/gpio.h> | 22 | #include <asm/gpio.h> |
| 22 | 23 | ||
| 23 | #include <mach/board.h> | ||
| 24 | #include <mach/cpu.h> | 24 | #include <mach/cpu.h> |
| 25 | 25 | ||
| 26 | #ifndef CONFIG_ARCH_AT91 | 26 | #ifndef CONFIG_ARCH_AT91 |
| @@ -94,7 +94,7 @@ static void at91_stop_hc(struct platform_device *pdev) | |||
| 94 | 94 | ||
| 95 | /*-------------------------------------------------------------------------*/ | 95 | /*-------------------------------------------------------------------------*/ |
| 96 | 96 | ||
| 97 | static void __devexit usb_hcd_at91_remove (struct usb_hcd *, struct platform_device *); | 97 | static void usb_hcd_at91_remove (struct usb_hcd *, struct platform_device *); |
| 98 | 98 | ||
| 99 | /* configure so an HC device and id are always provided */ | 99 | /* configure so an HC device and id are always provided */ |
| 100 | /* always called with process context; sleeping is OK */ | 100 | /* always called with process context; sleeping is OK */ |
| @@ -108,7 +108,7 @@ static void __devexit usb_hcd_at91_remove (struct usb_hcd *, struct platform_dev | |||
| 108 | * then invokes the start() method for the HCD associated with it | 108 | * then invokes the start() method for the HCD associated with it |
| 109 | * through the hotplug entry's driver_data. | 109 | * through the hotplug entry's driver_data. |
| 110 | */ | 110 | */ |
| 111 | static int __devinit usb_hcd_at91_probe(const struct hc_driver *driver, | 111 | static int usb_hcd_at91_probe(const struct hc_driver *driver, |
| 112 | struct platform_device *pdev) | 112 | struct platform_device *pdev) |
| 113 | { | 113 | { |
| 114 | int retval; | 114 | int retval; |
| @@ -203,7 +203,7 @@ static int __devinit usb_hcd_at91_probe(const struct hc_driver *driver, | |||
| 203 | * context, "rmmod" or something similar. | 203 | * context, "rmmod" or something similar. |
| 204 | * | 204 | * |
| 205 | */ | 205 | */ |
| 206 | static void __devexit usb_hcd_at91_remove(struct usb_hcd *hcd, | 206 | static void usb_hcd_at91_remove(struct usb_hcd *hcd, |
| 207 | struct platform_device *pdev) | 207 | struct platform_device *pdev) |
| 208 | { | 208 | { |
| 209 | usb_remove_hcd(hcd); | 209 | usb_remove_hcd(hcd); |
| @@ -222,7 +222,7 @@ static void __devexit usb_hcd_at91_remove(struct usb_hcd *hcd, | |||
| 222 | 222 | ||
| 223 | /*-------------------------------------------------------------------------*/ | 223 | /*-------------------------------------------------------------------------*/ |
| 224 | 224 | ||
| 225 | static int __devinit | 225 | static int |
| 226 | ohci_at91_reset (struct usb_hcd *hcd) | 226 | ohci_at91_reset (struct usb_hcd *hcd) |
| 227 | { | 227 | { |
| 228 | struct at91_usbh_data *board = hcd->self.controller->platform_data; | 228 | struct at91_usbh_data *board = hcd->self.controller->platform_data; |
| @@ -236,7 +236,7 @@ ohci_at91_reset (struct usb_hcd *hcd) | |||
| 236 | return 0; | 236 | return 0; |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | static int __devinit | 239 | static int |
| 240 | ohci_at91_start (struct usb_hcd *hcd) | 240 | ohci_at91_start (struct usb_hcd *hcd) |
| 241 | { | 241 | { |
| 242 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); | 242 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); |
| @@ -506,7 +506,7 @@ MODULE_DEVICE_TABLE(of, at91_ohci_dt_ids); | |||
| 506 | 506 | ||
| 507 | static u64 at91_ohci_dma_mask = DMA_BIT_MASK(32); | 507 | static u64 at91_ohci_dma_mask = DMA_BIT_MASK(32); |
| 508 | 508 | ||
| 509 | static int __devinit ohci_at91_of_init(struct platform_device *pdev) | 509 | static int ohci_at91_of_init(struct platform_device *pdev) |
| 510 | { | 510 | { |
| 511 | struct device_node *np = pdev->dev.of_node; | 511 | struct device_node *np = pdev->dev.of_node; |
| 512 | int i, gpio; | 512 | int i, gpio; |
| @@ -548,7 +548,7 @@ static int __devinit ohci_at91_of_init(struct platform_device *pdev) | |||
| 548 | return 0; | 548 | return 0; |
| 549 | } | 549 | } |
| 550 | #else | 550 | #else |
| 551 | static int __devinit ohci_at91_of_init(struct platform_device *pdev) | 551 | static int ohci_at91_of_init(struct platform_device *pdev) |
| 552 | { | 552 | { |
| 553 | return 0; | 553 | return 0; |
| 554 | } | 554 | } |
| @@ -556,7 +556,7 @@ static int __devinit ohci_at91_of_init(struct platform_device *pdev) | |||
| 556 | 556 | ||
| 557 | /*-------------------------------------------------------------------------*/ | 557 | /*-------------------------------------------------------------------------*/ |
| 558 | 558 | ||
| 559 | static int __devinit ohci_hcd_at91_drv_probe(struct platform_device *pdev) | 559 | static int ohci_hcd_at91_drv_probe(struct platform_device *pdev) |
| 560 | { | 560 | { |
| 561 | struct at91_usbh_data *pdata; | 561 | struct at91_usbh_data *pdata; |
| 562 | int i; | 562 | int i; |
| @@ -641,7 +641,7 @@ static int __devinit ohci_hcd_at91_drv_probe(struct platform_device *pdev) | |||
| 641 | return usb_hcd_at91_probe(&ohci_at91_hc_driver, pdev); | 641 | return usb_hcd_at91_probe(&ohci_at91_hc_driver, pdev); |
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | static int __devexit ohci_hcd_at91_drv_remove(struct platform_device *pdev) | 644 | static int ohci_hcd_at91_drv_remove(struct platform_device *pdev) |
| 645 | { | 645 | { |
| 646 | struct at91_usbh_data *pdata = pdev->dev.platform_data; | 646 | struct at91_usbh_data *pdata = pdev->dev.platform_data; |
| 647 | int i; | 647 | int i; |
| @@ -705,7 +705,7 @@ static int ohci_hcd_at91_drv_resume(struct platform_device *pdev) | |||
| 705 | if (!clocked) | 705 | if (!clocked) |
| 706 | at91_start_clock(); | 706 | at91_start_clock(); |
| 707 | 707 | ||
| 708 | ohci_finish_controller_resume(hcd); | 708 | ohci_resume(hcd, false); |
| 709 | return 0; | 709 | return 0; |
| 710 | } | 710 | } |
| 711 | #else | 711 | #else |
| @@ -717,7 +717,7 @@ MODULE_ALIAS("platform:at91_ohci"); | |||
| 717 | 717 | ||
| 718 | static struct platform_driver ohci_hcd_at91_driver = { | 718 | static struct platform_driver ohci_hcd_at91_driver = { |
| 719 | .probe = ohci_hcd_at91_drv_probe, | 719 | .probe = ohci_hcd_at91_drv_probe, |
| 720 | .remove = __devexit_p(ohci_hcd_at91_drv_remove), | 720 | .remove = ohci_hcd_at91_drv_remove, |
| 721 | .shutdown = usb_hcd_platform_shutdown, | 721 | .shutdown = usb_hcd_platform_shutdown, |
| 722 | .suspend = ohci_hcd_at91_drv_suspend, | 722 | .suspend = ohci_hcd_at91_drv_suspend, |
| 723 | .resume = ohci_hcd_at91_drv_resume, | 723 | .resume = ohci_hcd_at91_drv_resume, |
