]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Fix USB_GADGET implication
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 22 Sep 2017 07:51:37 +0000 (09:51 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:06 +0000 (19:12 +0200)
USB_GADGET will fail to compile if USB_MUSB_GADGET is not defined. Make
sure we have that condition right.

Fixes: e0ea88042d51 ("sunxi: Imply USB_ETHER")
Suggested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/Kconfig
drivers/usb/gadget/Kconfig

index 79571156cf5af89028a2f600a1f40c4d80a53e1f..5d1ce3e72d60ca9ea30c4dc02c0894d3ccfd7324 100644 (file)
@@ -704,7 +704,6 @@ config ARCH_SUNXI
        imply SPL_MMC_SUPPORT if MMC
        imply SPL_POWER_SUPPORT
        imply SPL_SERIAL_SUPPORT
-       imply USB_ETHER
        imply USB_GADGET
 
 config TARGET_TS4600
index 78faac74e997960ebe3201fbc0877c9f82d3854d..102a63b8eeb9e7547dbe7a89b43105c00bf2c278 100644 (file)
@@ -138,6 +138,7 @@ endif # USB_GADGET_DOWNLOAD
 
 config USB_ETHER
        bool "USB Ethernet Gadget"
+       default y if ARCH_SUNXI && USB_MUSB_GADGET
        help
          Creates an Ethernet network device through a USB peripheral
          controller. This will create a network interface on both the device