netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: m_can: add CONFIG_HAS_IOMEM dependence
@ 2014-10-15 21:41 David Cohen
  2014-10-18 16:30 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: David Cohen @ 2014-10-15 21:41 UTC (permalink / raw)
  To: wg, mkl; +Cc: linux-can, netdev, linux-kernel, trivial, David Cohen

m_can uses io memory which makes it not compilable on architectures
without HAS_IOMEM such as UML:

drivers/built-in.o: In function `m_can_plat_probe':
m_can.c:(.text+0x218cc5): undefined reference to `devm_ioremap_resource'
m_can.c:(.text+0x218df9): undefined reference to `devm_ioremap'

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
---
 drivers/net/can/m_can/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/can/m_can/Kconfig b/drivers/net/can/m_can/Kconfig
index fca5482c09ac..04f20dd39007 100644
--- a/drivers/net/can/m_can/Kconfig
+++ b/drivers/net/can/m_can/Kconfig
@@ -1,4 +1,5 @@
 config CAN_M_CAN
+	depends on HAS_IOMEM
 	tristate "Bosch M_CAN devices"
 	---help---
 	  Say Y here if you want to support for Bosch M_CAN controller.
-- 
2.1.0


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

end of thread, other threads:[~2014-10-18 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 21:41 [PATCH] net: m_can: add CONFIG_HAS_IOMEM dependence David Cohen
2014-10-18 16:30 ` Marc Kleine-Budde

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).