Skip to content

Commit 843e56c

Browse files
arndbgregkh
authored andcommitted
USB: EHCI: remove bogus #error
The EHCI host controller driver can be built standalone now, without enabling any of the available bus glue drivers, so there is not really a reason to error out here: drivers/usb/host/ehci-hcd.c:1303:2: error: #error "missing bus glue for ehci-hcd" #error "missing bus glue for ehci-hcd" The alternative would be to change the Kconfig code to build the ehci-hcd module only if any of the symbols below are in fact enabled. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bac6b03 commit 843e56c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/usb/host/ehci-hcd.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,23 +1286,6 @@ MODULE_LICENSE ("GPL");
12861286
#define PLATFORM_DRIVER ehci_hcd_sead3_driver
12871287
#endif
12881288

1289-
#if !IS_ENABLED(CONFIG_USB_EHCI_PCI) && \
1290-
!IS_ENABLED(CONFIG_USB_EHCI_HCD_PLATFORM) && \
1291-
!IS_ENABLED(CONFIG_USB_CHIPIDEA_HOST) && \
1292-
!IS_ENABLED(CONFIG_USB_EHCI_MXC) && \
1293-
!IS_ENABLED(CONFIG_USB_EHCI_HCD_OMAP) && \
1294-
!IS_ENABLED(CONFIG_USB_EHCI_HCD_ORION) && \
1295-
!IS_ENABLED(CONFIG_USB_EHCI_HCD_SPEAR) && \
1296-
!IS_ENABLED(CONFIG_USB_EHCI_S5P) && \
1297-
!IS_ENABLED(CONFIG_USB_EHCI_HCD_AT91) && \
1298-
!IS_ENABLED(CONFIG_USB_EHCI_MSM) && \
1299-
!defined(PLATFORM_DRIVER) && \
1300-
!defined(PS3_SYSTEM_BUS_DRIVER) && \
1301-
!defined(OF_PLATFORM_DRIVER) && \
1302-
!defined(XILINX_OF_PLATFORM_DRIVER)
1303-
#error "missing bus glue for ehci-hcd"
1304-
#endif
1305-
13061289
static int __init ehci_hcd_init(void)
13071290
{
13081291
int retval = 0;

0 commit comments

Comments
 (0)