Skip to contentSkip to conversation

gpio: mockup: add sysfs dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 10, 2016 – Oct 12, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: mockup: add sysfs dependency

Building the gpio-mockup driver without SYSFS results in a harmless Kconfig warning:

warning: (GPIO_MOCKUP) selects GPIO_SYSFS which has unmet direct dependencies (GPIOLIB && SYSFS)

We can easily avoid that warning by adding a dependency on SYSFS.

Fixes 0f98dd1b27d2 ("gpio/mockup: add virtual gpio device")
---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
index 26ee00f6bd58..d011cb89d25e 100644
@@ -284,7 +284,7 @@ config GPIO_MM_LANTIQ
 
 config GPIO_MOCKUP
 	tristate "GPIO Testing Driver"
-	depends on GPIOLIB
+	depends on GPIOLIB && SYSFS
 	select GPIO_SYSFS
 	help
 	  This enables GPIO Testing driver, which provides a way to test GPIO
Signature · 1 line
2.9.0
#1 lore raw
Quoted 9 lines · Arnd Bergmann

Building the gpio-mockup driver without SYSFS results in a harmless Kconfig warning:

warning: (GPIO_MOCKUP) selects GPIO_SYSFS which has unmet direct dependencies (GPIOLIB && SYSFS)

We can easily avoid that warning by adding a dependency on SYSFS.

Fixes 0f98dd1b27d2 ("gpio/mockup: add virtual gpio device")

Patch applied.

Yours,
Linus Walleij