net: m_can: add CONFIG_HAS_IOMEM dependence
Subsystems (4)
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'
Signed-off-by David Cohen <[email protected]>
--- drivers/net/can/m_can/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/can/m_can/Kconfig +1 -0
@@ -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
Quoted 8 lines · David Cohen
m_canuses io memory which makes it not compilable on architectures withoutHAS_IOMEMsuch as UML:
drivers/built-in.o: In function `m_can_plat_probe':
m_can.c:(.text+0x218cc5): undefined reference todevm_ioremap_resource' m_can.c:(.text+0x218df9): undefined reference todevm_ioremap'Signed-off-by David Cohen <[email protected]>
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 |