提交 2a910d13 编写于 作者: M Matthias Brugger

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: NMatthias Brugger <matthias.bgg@gmail.com>
上级 d956b80a
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
config MTK_PMIC_WRAP config MTK_PMIC_WRAP
tristate "MediaTek PMIC Wrapper Support" tristate "MediaTek PMIC Wrapper Support"
depends on ARCH_MEDIATEK depends on ARCH_MEDIATEK
depends on RESET_CONTROLLER
select REGMAP select REGMAP
help help
Say yes here to add support for MediaTek PMIC Wrapper found Say yes here to add support for MediaTek PMIC Wrapper found
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册