virtio: add HAS_IOMEM dependency to MMIO platform bus driver
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 15 Nov 2011 09:13:24 +0000 (10:13 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Nov 2011 02:34:47 +0000 (13:04 +1030)
Fix this compile error on s390:

  CC [M]  drivers/virtio/virtio_mmio.o
drivers/virtio/virtio_mmio.c: In function 'vm_get_features':
drivers/virtio/virtio_mmio.c:107:2: error: implicit declaration of function 'writel'

Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/Kconfig

index 816ed08e7cf3c504f4ce5377b327964a30daa8e9..1a61939b85fce4f3a1269b7915b1e9c3760efe26 100644 (file)
@@ -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 HAS_IOMEM && EXPERIMENTAL
        select VIRTIO
        select VIRTIO_RING
        ---help---