Jelajahi Sumber

usb: phy: Allow compile test of GPIO consumers if !GPIOLIB

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Geert Uytterhoeven 10 tahun lalu
induk
melakukan
db978e2847
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      drivers/usb/phy/Kconfig

+ 1 - 1
drivers/usb/phy/Kconfig

@@ -91,7 +91,7 @@ config TWL6030_USB
 
 
 config USB_GPIO_VBUS
 config USB_GPIO_VBUS
 	tristate "GPIO based peripheral-only VBUS sensing 'transceiver'"
 	tristate "GPIO based peripheral-only VBUS sensing 'transceiver'"
-	depends on GPIOLIB
+	depends on GPIOLIB || COMPILE_TEST
 	select USB_PHY
 	select USB_PHY
 	help
 	help
 	  Provides simple GPIO VBUS sensing for controllers with an
 	  Provides simple GPIO VBUS sensing for controllers with an