pwm: Let PWM_CLPS711X depend on HAS_IOMEM
authorChen Gang <gang.chen.5i5j@gmail.com>
Sat, 4 Oct 2014 09:48:42 +0000 (17:48 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Oct 2014 07:39:44 +0000 (09:39 +0200)
PWM_CLPS711X needs HAS_IOMEM, so depend on it, the related error (with
allmodconfig under um):

    MODPOST 1205 modules
  ERROR: "devm_ioremap_resource" [drivers/pwm/pwm-clps711x.ko] undefined!
  ERROR: "devm_ioremap" [drivers/net/phy/mdio-bcm-unimac.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig

index 3865dfb9ed08eeecfd0157cc35e74b4568784c07..ef2dd2e4754bacd784cd519ec7f4b66216a13e99 100644 (file)
@@ -83,6 +83,7 @@ config PWM_BFIN
 config PWM_CLPS711X
        tristate "CLPS711X PWM support"
        depends on ARCH_CLPS711X || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          Generic PWM framework driver for Cirrus Logic CLPS711X.