The DWC2 OTG driver depends on an ARM-specific header file to compile,
so make it depend on ARM.

Signed-off-by: Tom Rini <[email protected]>
---
Cc: Marek Vasut <[email protected]>
---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index e845e46e0b7f..3a8ef45706aa 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -105,6 +105,7 @@ config USB_GADGET_AT91
 
 config USB_GADGET_DWC2_OTG
        bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
+       depends on ARM
        select USB_GADGET_DUALSPEED
        help
          The Designware USB2.0 high-speed gadget controller
-- 
2.43.0

Reply via email to