[PATCH] drivers/pwm/Kconfig: Let PWM_CLPS711X depend on HAS_IOMEM

From: Chen Gang
Date: Sun Jul 13 2014 - 07:49:39 EST

PWM_CLPS711X needs HAS_IOMEM, so let it depend on HAS_IOMEM.

The related error (with allmodconfig under score):

MODPOST 1365 modules
ERROR: "devm_ioremap_resource" [drivers/pwm/pwm-clps711x.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx>
drivers/pwm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 4ad7b89..2faf5ce 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -82,7 +82,7 @@ config PWM_BFIN

config PWM_CLPS711X
tristate "CLPS711X PWM support"
- depends on ARCH_CLPS711X || COMPILE_TEST
+ depends on (ARCH_CLPS711X || COMPILE_TEST) && HAS_IOMEM
Generic PWM framework driver for Cirrus Logic CLPS711X.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/