twl4030_charger: add missing iio dependency
authorSebastian Reichel <sre@kernel.org>
Thu, 15 Oct 2015 09:11:07 +0000 (11:11 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 16 Oct 2015 12:12:38 +0000 (14:12 +0200)
This driver fails to link without CONFIG_IIO, since
there are no stubs for the iio_channels functions.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Marek Belisko <marek@goldelico.com>
Acked-by: Nikolaus Schaller <hns@goldelico.com>
drivers/power/Kconfig

index 9e68853217ca1c23aafcd22c2d3b7d44f3d3ec30..cb0ae666dc682e1010d0f2262ef87729da1ed685 100644 (file)
@@ -313,7 +313,7 @@ config CHARGER_MAX8903
 
 config CHARGER_TWL4030
        tristate "OMAP TWL4030 BCI charger driver"
-       depends on TWL4030_CORE
+       depends on IIO && TWL4030_CORE
        help
          Say Y here to enable support for TWL4030 Battery Charge Interface.