On Monday 09 March 2015 10:50:26 Jonathan Cameron wrote: > >> diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig > >> index 4c7a4c52dd06..a5d6de72c523 100644 > >> --- a/drivers/iio/magnetometer/Kconfig > >> +++ b/drivers/iio/magnetometer/Kconfig > >> @@ -18,6 +18,8 @@ config AK8975 > >> > >> config AK09911 > >> tristate "Asahi Kasei AK09911 3-axis Compass" > >> + depends on I2C > >> + depends on GPIOLIB > >> select AK8975 > >> help > >> Deprecated: AK09911 is now supported by AK8975 driver. > > > > I just saw the AK8975/AK09911 config options disappear for a v4.0-rc3 m68k > > allmodconfig kernel. Apparently it built fine with !GPIOLIB before, as many > > gpiolib (consumer) functions have dummies for the !GPIOLIB case. > > > > So I think the GPIOLIB dependency can be relaxed to "GPIOLIB || COMPILE_TEST". > > The same may be true for many other GPIOLIB consumer drivers. > > Will look into it and send patches... The reason for this dependency is the 'select AK8975', which causes a Kconfig warning if GPIOLIB is disabled. I do not see an actual dependency on gpiolib in the ak8975 driver, but relaxing this means we have to remove the dependency for both of them together, not just for AK09911. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html