From: Andi Kleen <a...@linux.intel.com>

Fix (randconfig) build problem with DEBUG_FS on

Cc: ba...@ti.com
Cc: linux-...@vger.kernel.org
Signed-off-by: Andi Kleen <a...@linux.intel.com>
---
 drivers/usb/dwc3/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile
index 0c7ac92..2c7b55f 100644
--- a/drivers/usb/dwc3/Makefile
+++ b/drivers/usb/dwc3/Makefile
@@ -13,8 +13,8 @@ ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) 
$(CONFIG_USB_DWC3_DUAL_ROLE)),)
        dwc3-y                          += gadget.o ep0.o
 endif
 
-ifneq ($(CONFIG_DEBUG_FS),)
-       dwc3-y                          += debugfs.o
+ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
+       dwc3-$(CONFIG_DEBUG_FS)         += debugfs.o
 endif
 
 ##
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to