* [PATCH] pwm: clps711x: add CONFIG_HAS_IOMEM dependence
@ 2014-10-15 21:36 David Cohen
0 siblings, 0 replies; only message in thread
From: David Cohen @ 2014-10-15 21:36 UTC (permalink / raw)
To: thierry.reding; +Cc: linux-pwm, linux-kernel, trivial, David Cohen
clps711x uses io memory which makes it not compilable on architectures
without HAS_IOMEM such as UML:
drivers/built-in.o: In function `clps711x_pwm_probe':
pwm-clps711x.c:(.text+0x2848): undefined reference to
`devm_ioremap_resource'
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
---
drivers/pwm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 3865dfb9ed08..bc5bdce00059 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 HAS_IOMEM && (ARCH_CLPS711X || COMPILE_TEST)
help
Generic PWM framework driver for Cirrus Logic CLPS711X.
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-15 21:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 21:36 [PATCH] pwm: clps711x: add CONFIG_HAS_IOMEM dependence David Cohen
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).