The USB PCI quirks code gets built into the kernel whenever CONFIG_PCI
is enabled, even if CONFIG_USB is not set.  This can cause unnecessary
messages to show up in the kernel log, such as "CONFIG_USB_XHCI_HCD is
turned off, defaulting to EHCI" (which makes no sense when the kernel
has been configured without host-side USB support).

This patch addresses the problem by removing the Makefile line that
adds the drivers/usb/host/ subdirectory to the build list when
CONFIG_PCI is set.  The quirks code will still get built if it is
needed, because the Kconfig symbols for the individual host controller
drivers (such as CONFIG_USB_EHCI_HCD) will still cause the host/
directory to be built.

Signed-off-by: Alan Stern <[email protected]>
Reported-by: Toralf Förster <[email protected]>
Tested-by: Toralf Förster <[email protected]>

---


[as1778]


 drivers/usb/Makefile |    1 -
 1 file changed, 1 deletion(-)

Index: usb-4.0/drivers/usb/Makefile
===================================================================
--- usb-4.0.orig/drivers/usb/Makefile
+++ usb-4.0/drivers/usb/Makefile
@@ -12,7 +12,6 @@ obj-$(CONFIG_USB_ISP1760)     += isp1760/
 
 obj-$(CONFIG_USB_MON)          += mon/
 
-obj-$(CONFIG_PCI)              += host/
 obj-$(CONFIG_USB_EHCI_HCD)     += host/
 obj-$(CONFIG_USB_ISP116X_HCD)  += host/
 obj-$(CONFIG_USB_OHCI_HCD)     += host/

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to