Commit bd20817f733ceb0291e0449106307ffc939006ba

Authored by Heiko Carstens
Committed by Rusty Russell
1 parent b4bbb02934

virtio: add HAS_IOMEM dependency to MMIO platform bus driver

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/virtio/Kconfig
... ... @@ -37,7 +37,7 @@
37 37  
38 38 config VIRTIO_MMIO
39 39 tristate "Platform bus driver for memory mapped virtio devices (EXPERIMENTAL)"
40   - depends on EXPERIMENTAL
  40 + depends on HAS_IOMEM && EXPERIMENTAL
41 41 select VIRTIO
42 42 select VIRTIO_RING
43 43 ---help---