aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorManjunath Goudar <manjunath.goudar@linaro.org>2013-04-02 12:24:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 12:38:12 -0400
commit7edb3daf78e5124b64a39b6eb264ec2a487e295a (patch)
tree51a9c5fb4e08d48c5f612b81f958a6212966aff2 /drivers/usb/host/ehci-hcd.c
parent7675d6ba436f8439fc524ee0b42dc562cb1bc74e (diff)
USB: EHCI: make ehci-s5p a separate driver
Separate the Samsung S5P/EXYNOS 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 S5P/EXYNOS can be booted with a multi-platform kernel. We currently expect those to get merged for 3.10. 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 s5p bus glue. In V4 (arnd) - revert some of the pointless changes. - fix allocation of s5p specific data structure. In V3: - Detailed commit message added here, why this patch is required. - MODULE_LICENSE is GPL v2. - Added .extra_priv_size to eliminate the separate allocation of the s5p_ehci_hcd structure and removed .reset function pointer initialization. - Arranged #include's in alphabetical order. - After using extra_priv_size initialization, struct usb_hcd *hcd is redundant and can be removed from the probe function. - Eliminated s5p_ehci_phy_enable,contents of statements moved into the s5p_ehci_probe - Eliminated s5p_ehci_phy_disable, contents of statements moved into the s5p_ehci_remove. In V2: - Tegra patch related changes removed from this patch. Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org> Acked-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index c8c70a1fabc4..8f1f4b489a68 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1284,11 +1284,6 @@ MODULE_LICENSE ("GPL");
1284#define PLATFORM_DRIVER tegra_ehci_driver 1284#define PLATFORM_DRIVER tegra_ehci_driver
1285#endif 1285#endif
1286 1286
1287#ifdef CONFIG_USB_EHCI_S5P
1288#include "ehci-s5p.c"
1289#define PLATFORM_DRIVER s5p_ehci_driver
1290#endif
1291
1292#ifdef CONFIG_SPARC_LEON 1287#ifdef CONFIG_SPARC_LEON
1293#include "ehci-grlib.c" 1288#include "ehci-grlib.c"
1294#define PLATFORM_DRIVER ehci_grlib_driver 1289#define PLATFORM_DRIVER ehci_grlib_driver
@@ -1311,6 +1306,7 @@ MODULE_LICENSE ("GPL");
1311 !IS_ENABLED(CONFIG_USB_EHCI_HCD_OMAP) && \ 1306 !IS_ENABLED(CONFIG_USB_EHCI_HCD_OMAP) && \
1312 !IS_ENABLED(CONFIG_USB_EHCI_HCD_ORION) && \ 1307 !IS_ENABLED(CONFIG_USB_EHCI_HCD_ORION) && \
1313 !IS_ENABLED(CONFIG_USB_EHCI_HCD_SPEAR) && \ 1308 !IS_ENABLED(CONFIG_USB_EHCI_HCD_SPEAR) && \
1309 !IS_ENABLED(CONFIG_USB_EHCI_S5P) && \
1314 !defined(PLATFORM_DRIVER) && \ 1310 !defined(PLATFORM_DRIVER) && \
1315 !defined(PS3_SYSTEM_BUS_DRIVER) && \ 1311 !defined(PS3_SYSTEM_BUS_DRIVER) && \
1316 !defined(OF_PLATFORM_DRIVER) && \ 1312 !defined(OF_PLATFORM_DRIVER) && \