pwm: renesas-tpu: Add dependency on HAS_IOMEM

On archs like S390 or um this driver cannot build nor work.
Make it depend on HAS_IOMEM to bypass build failures.

drivers/built-in.o: In function `tpu_probe':
drivers/pwm/pwm-renesas-tpu.c:421: undefined reference to `devm_ioremap_resource'

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Richard Weinberger 2014-01-31 13:45:18 +01:00 committed by Thierry Reding
parent 557fe99d9d
commit 2974b09860
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ config PWM_PXA
config PWM_RENESAS_TPU config PWM_RENESAS_TPU
tristate "Renesas TPU PWM support" tristate "Renesas TPU PWM support"
depends on ARCH_SHMOBILE || COMPILE_TEST depends on ARCH_SHMOBILE || COMPILE_TEST
depends on HAS_IOMEM
help help
This driver exposes the Timer Pulse Unit (TPU) PWM controller found This driver exposes the Timer Pulse Unit (TPU) PWM controller found
in Renesas chips through the PWM API. in Renesas chips through the PWM API.