Skip to contentSkip to conversation

net: m_can: add CONFIG_HAS_IOMEM dependence

PATCH Applied David Cohen 2 participants 2 messages Oct 15, 2014 – Oct 18, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: m_can: add CONFIG_HAS_IOMEM dependence

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'

---
 drivers/net/can/m_can/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/can/m_can/Kconfig +1 -0
index fca5482c09ac..04f20dd39007 100644
@@ -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.
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 8 lines · 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'

Applied to the can tree.

Thanks,
Marc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |