diff options
author | Manjunath Goudar <manjunath.goudar@linaro.org> | 2013-04-02 12:24:02 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-08 12:40:20 -0400 |
commit | 9773696105534dd5193576adfe4a0117a6489c64 (patch) | |
tree | 3551353fdd4512391939dae7b7f54eda5918d6b6 /drivers/usb/host/ehci-hcd.c | |
parent | 7edb3daf78e5124b64a39b6eb264ec2a487e295a (diff) |
USB: EHCI: make ehci-atmel a separate driver
Separate the Atmel host controller driver from ehci-hcd host code
so that it can be built as a separate driver module.
This work is part of enabling multi-platform kernels on ARM;
however, note that other changes are still needed before Atmel can be
booted with a multi-platform kernel. This is currently planned for
Linux-3.11.
With the infrastructure added by Alan Stern in patch 3e0232039
"USB: EHCI: prepare to make ehci-hcd a library module", we can
avoid this problem by turning a bus glue into a separate
module, as we do here for the Atmel bus glue.
In V4 (arnd):
- reordered #include statements.
- removed call to ehci_shutdown and the corresponding export
In V3:
- Detailed commit message added here about why this patch is required.
- Replaced hcd_name string "ehci-atmel" to "atmel-ehci".
- Inserted blank line in the Makefile to separate the EHCI drivers from
the following non-EHCI drivers.
- Exported ehci_shutdown symbol as it is needed by the Atmel driver.
- Eliminated ehci_atmel_setup routine because hcd registers
can be directly set in the ehci_atmel_drv_probe function.
In V2:
Resolved below compiler error.
drivers/usb/host/ehci-atmel.c: In function 'ehci_atmel_drv_remove':
drivers/usb/host/ehci-atmel.c:167: error: implicit declaration of function 'ehci_shutdown'
Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 8f1f4b489a68..ccc78abd4500 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -1254,11 +1254,6 @@ MODULE_LICENSE ("GPL"); | |||
1254 | #define PLATFORM_DRIVER ehci_hcd_w90x900_driver | 1254 | #define PLATFORM_DRIVER ehci_hcd_w90x900_driver |
1255 | #endif | 1255 | #endif |
1256 | 1256 | ||
1257 | #ifdef CONFIG_ARCH_AT91 | ||
1258 | #include "ehci-atmel.c" | ||
1259 | #define PLATFORM_DRIVER ehci_atmel_driver | ||
1260 | #endif | ||
1261 | |||
1262 | #ifdef CONFIG_USB_OCTEON_EHCI | 1257 | #ifdef CONFIG_USB_OCTEON_EHCI |
1263 | #include "ehci-octeon.c" | 1258 | #include "ehci-octeon.c" |
1264 | #define PLATFORM_DRIVER ehci_octeon_driver | 1259 | #define PLATFORM_DRIVER ehci_octeon_driver |
@@ -1307,6 +1302,7 @@ MODULE_LICENSE ("GPL"); | |||
1307 | !IS_ENABLED(CONFIG_USB_EHCI_HCD_ORION) && \ | 1302 | !IS_ENABLED(CONFIG_USB_EHCI_HCD_ORION) && \ |
1308 | !IS_ENABLED(CONFIG_USB_EHCI_HCD_SPEAR) && \ | 1303 | !IS_ENABLED(CONFIG_USB_EHCI_HCD_SPEAR) && \ |
1309 | !IS_ENABLED(CONFIG_USB_EHCI_S5P) && \ | 1304 | !IS_ENABLED(CONFIG_USB_EHCI_S5P) && \ |
1305 | !IS_ENABLED(CONFIG_USB_EHCI_HCD_AT91) && \ | ||
1310 | !defined(PLATFORM_DRIVER) && \ | 1306 | !defined(PLATFORM_DRIVER) && \ |
1311 | !defined(PS3_SYSTEM_BUS_DRIVER) && \ | 1307 | !defined(PS3_SYSTEM_BUS_DRIVER) && \ |
1312 | !defined(OF_PLATFORM_DRIVER) && \ | 1308 | !defined(OF_PLATFORM_DRIVER) && \ |