virtio: allow finalize_features to fail
[deliverable/linux.git] / drivers / lguest / lguest_device.c
index 9b77b6623ff853990c9d5f44277c7dc16f58c530..89088d6538fd03df9a234dd3850f3cfb34b6fd33 100644 (file)
@@ -126,7 +126,7 @@ static void status_notify(struct virtio_device *vdev)
  * sorted out, this routine is called so we can tell the Host which features we
  * understand and accept.
  */
-static void lg_finalize_features(struct virtio_device *vdev)
+static int lg_finalize_features(struct virtio_device *vdev)
 {
        unsigned int i, bits;
        struct lguest_device_desc *desc = to_lgdev(vdev)->desc;
@@ -153,6 +153,8 @@ static void lg_finalize_features(struct virtio_device *vdev)
 
        /* Tell Host we've finished with this device's feature negotiation */
        status_notify(vdev);
+
+       return 0;
 }
 
 /* Once they've found a field, getting a copy of it is easy. */
This page took 0.0271 seconds and 5 git commands to generate.