diff options
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index dd6df979862b..9be59d9f2f19 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -112,7 +112,7 @@ static u64 vp_get_features(struct virtio_device *vdev) | |||
112 | } | 112 | } |
113 | 113 | ||
114 | /* virtio config->finalize_features() implementation */ | 114 | /* virtio config->finalize_features() implementation */ |
115 | static void vp_finalize_features(struct virtio_device *vdev) | 115 | static int vp_finalize_features(struct virtio_device *vdev) |
116 | { | 116 | { |
117 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); | 117 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); |
118 | 118 | ||
@@ -124,6 +124,8 @@ static void vp_finalize_features(struct virtio_device *vdev) | |||
124 | 124 | ||
125 | /* We only support 32 feature bits. */ | 125 | /* We only support 32 feature bits. */ |
126 | iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); | 126 | iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); |
127 | |||
128 | return 0; | ||
127 | } | 129 | } |
128 | 130 | ||
129 | /* virtio config->get() implementation */ | 131 | /* virtio config->get() implementation */ |