[patch] missing dependency for virtio_mmio

From: Al Viro
Date: Sun Nov 20 2011 - 22:58:37 EST


Driver really depends on having readb/writeb/etc. - won't even build on
things like s390 or uml and on tile without PCI it'll build but panic
if you manage to run it...

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 816ed08..4ae52fc 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -37,7 +37,7 @@ config VIRTIO_BALLOON

config VIRTIO_MMIO
tristate "Platform bus driver for memory mapped virtio devices (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ depends on EXPERIMENTAL && HAS_IOMEM
select VIRTIO
select VIRTIO_RING
---help---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/