diff options
author | Matthias Brugger <matthias.bgg@gmail.com> | 2015-05-27 08:20:55 -0400 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2015-05-27 10:27:05 -0400 |
commit | 2a910d139e405f1038c0f2ea7f9ac45acc84cce9 (patch) | |
tree | 9f9f14a039284a5abbddca06ec435254ce7ee5f2 | |
parent | d956b80ac7a6ba6ee45ac46e969f68dd15b4b729 (diff) |
soc: mediatek: Add compile dependency to pmic-wrapper
The pmic-wrapper calls the reset controller. If CONFIG_RESET_CONTROLLER
is not set, compilation fails with:
drivers/soc/mediatek/mtk-pmic-wrap.c: In function ‘pwrap_probe’:
drivers/soc/mediatek/mtk-pmic-wrap.c:836:2: error: implicit declaration of function ‘devm_reset_control_get’ [-Werror=implicit-function-declaration]
This patch sets the dependency in the Kconfig file.
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r-- | drivers/soc/mediatek/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig index bcdb22d5e215..3c1850332a90 100644 --- a/drivers/soc/mediatek/Kconfig +++ b/drivers/soc/mediatek/Kconfig | |||
@@ -4,6 +4,7 @@ | |||
4 | config MTK_PMIC_WRAP | 4 | config MTK_PMIC_WRAP |
5 | tristate "MediaTek PMIC Wrapper Support" | 5 | tristate "MediaTek PMIC Wrapper Support" |
6 | depends on ARCH_MEDIATEK | 6 | depends on ARCH_MEDIATEK |
7 | depends on RESET_CONTROLLER | ||
7 | select REGMAP | 8 | select REGMAP |
8 | help | 9 | help |
9 | Say yes here to add support for MediaTek PMIC Wrapper found | 10 | Say yes here to add support for MediaTek PMIC Wrapper found |