From: Randy Dunlap Date: Mon, 15 Jan 2018 05:11:05 +0000 (-0800) Subject: iio/adc: depend on SYSFS instead of selecting it X-Git-Tag: v4.17-rc1~124^2~388^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ea9170e57689082fabc5787521774533bbd4a5a9;p=users%2Fwilly%2Flinux.git iio/adc: depend on SYSFS instead of selecting it Drivers should not 'select' a subsystem. Instead they should depend on it. If the subsystem is disabled, the user probably did that for a purpose and one driver shouldn't be changing that. This also makes all IIO drivers consistent w.r.t depending on SYSFS instead of selecting it. Signed-off-by: Randy Dunlap Cc: Jonathan Cameron Cc: linux-iio@vger.kernel.org Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 47492c936747..10f3ede91d3a 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -144,10 +144,9 @@ config ASPEED_ADC config AT91_ADC tristate "Atmel AT91 ADC" depends on ARCH_AT91 - depends on INPUT + depends on INPUT && SYSFS select IIO_BUFFER select IIO_TRIGGERED_BUFFER - select SYSFS help Say yes here to build support for Atmel AT91 ADC.