Skip to content

Commit

Permalink
can: m_can: add CONFIG_HAS_IOMEM dependence
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
David Cohen authored and Marc Kleine-Budde committed Nov 18, 2014
1 parent d6fdb38 commit efe2228
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/can/m_can/Kconfig
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit efe2228

Please sign in to comment.