From 7134fd580bf3cf3bd4e5a2296823514ee8d80e59 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Tue, 11 Mar 2008 17:12:06 -0300 Subject: [PATCH] Virtio_blk_init return PCIDevice pointer Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- hw/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 65a8ab2969..0f55d2ab33 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -161,5 +161,5 @@ void *virtio_blk_init(PCIBus *bus, uint16_t vendor, uint16_t device, virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output); - return &s->vdev; + return s; } -- 2.11.4.GIT