瀏覽代碼

twl4030_charger: add missing iio dependency

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>
Sebastian Reichel 10 年之前
父節點
當前提交
0f4998cbb2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/power/Kconfig

+ 1 - 1
drivers/power/Kconfig

@@ -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.