From: Alan Stern Date: Wed, 22 Apr 2015 16:11:59 +0000 (-0400) Subject: USB: don't build PCI quirks if USB support isn't configured X-Git-Tag: omap-for-v4.2/fixes-rc1^2~90^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3091fa77ffb1b91f4ac3ae005efe6213508f7ec1;p=pandora-kernel.git USB: don't build PCI quirks if USB support isn't configured 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 building pci-quirks.o only when CONFIG_PCI and CONFIG_USB are both enabled. Signed-off-by: Alan Stern Reported-by: Toralf Förster Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed