]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-pci: do not access iomem via struct virtio_pci_device directly
authorJason Wang <jasowang@redhat.com>
Mon, 4 Jan 2021 06:54:45 +0000 (14:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2021 12:52:57 +0000 (07:52 -0500)
commit4d60dc379b489ad2546958543c9d107a50b8b42f
treea618950e2cf7f0de13e313eaa205425305a106e5
parent24edb9e440e17b964d1268e1e30bed6e5ac7f9d4
virtio-pci: do not access iomem via struct virtio_pci_device directly

Instead of accessing iomem via struct virito_pci_device directly,
tweak to call the io accessors through the iomem structure. This will
ease the splitting of modern virtio device logic.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-2-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_modern.c