virtio_pci_modern: switch to type-safe io accessors
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Apr 2015 04:13:15 +0000 (14:43 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Apr 2015 04:13:34 +0000 (14:43 +1030)
commita8557d32fe90a91d70dbbf57a034ad0c660ce237
treebbb62a88af00743838db82c35b357c260f013b60
parentc5d4c2c9ce4f4b6980a71dec50f2db4c2e55778d
virtio_pci_modern: switch to type-safe io accessors

As Rusty noted, we were accessing queue_enable with an incorrect width.
Switch to type-safe accessors so we don't make this mistake again in the
future.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci_modern.c