Skip to contentSkip to conversation

ramoops: add HAS_IOMEM dependency

PATCH New Heiko Carstens 1 participant 1 message May 28, 2010 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ramoops: add HAS_IOMEM dependency

From: Heiko Carstens <[email protected]>

The driver fails to compile on s390:

drivers/char/ramoops.c: In function 'ramoops_init':
drivers/char/ramoops.c:122: error: implicit declaration of function 'ioremap'

Since we won't make use of the driver anyway on s390 just let it depend on HAS_IOMEM.

---
 drivers/char/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/char/Kconfig +1 -0
@@ -1123,6 +1123,7 @@ source "drivers/s390/char/Kconfig"
 
 config RAMOOPS
 	tristate "Log panic/oops to a RAM buffer"
+	depends on HAS_IOMEM
 	default n
 	help
 	  This enables panic and oops messages to be logged to a circular