hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro
Access QOM parent with the proper QOM VIRTIO_DEVICE() macro. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20231017140150.44995-4-philmd@linaro.org>
This commit is contained in:
parent
11591b5866
commit
3daccfff75
@ -1128,7 +1128,7 @@ static void virtio_gpu_ctrl_bh(void *opaque)
|
||||
VirtIOGPU *g = opaque;
|
||||
VirtIOGPUClass *vgc = VIRTIO_GPU_GET_CLASS(g);
|
||||
|
||||
vgc->handle_ctrl(&g->parent_obj.parent_obj, g->ctrl_vq);
|
||||
vgc->handle_ctrl(VIRTIO_DEVICE(g), g->ctrl_vq);
|
||||
}
|
||||
|
||||
static void virtio_gpu_handle_cursor(VirtIODevice *vdev, VirtQueue *vq)
|
||||
|
Loading…
Reference in New Issue
Block a user