linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: mediatek: Add compile dependency to pmic-wrapper
@ 2015-05-27 12:31 Matthias Brugger
  2015-05-27 14:27 ` Matthias Brugger
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Brugger @ 2015-05-27 12:31 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 drivers/soc/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index bcdb22d..3c18503 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -4,6 +4,7 @@
 config MTK_PMIC_WRAP
 	tristate "MediaTek PMIC Wrapper Support"
 	depends on ARCH_MEDIATEK
+	depends on RESET_CONTROLLER
 	select REGMAP
 	help
 	  Say yes here to add support for MediaTek PMIC Wrapper found
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] soc: mediatek: Add compile dependency to pmic-wrapper
  2015-05-27 12:31 [PATCH] soc: mediatek: Add compile dependency to pmic-wrapper Matthias Brugger
@ 2015-05-27 14:27 ` Matthias Brugger
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Brugger @ 2015-05-27 14:27 UTC (permalink / raw)
  To: linux-arm-kernel

2015-05-27 14:31 GMT+02:00 Matthias Brugger <matthias.bgg@gmail.com>:
> 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>
> ---
>  drivers/soc/mediatek/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>

Applied to v4.1-next/soc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-27 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 12:31 [PATCH] soc: mediatek: Add compile dependency to pmic-wrapper Matthias Brugger
2015-05-27 14:27 ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).