mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/xen: Prefer QOM cast for XenLegacyDevice
Makes the code less sensitive regarding changes in the class hierarchy which will be performed in the next patch. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250127094129.15941-1-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
c10f4c744a
commit
83f0f363e4
3 changed files with 5 additions and 5 deletions
|
@ -273,7 +273,7 @@ void xen_pv_del_xendev(struct XenLegacyDevice *xendev)
|
|||
|
||||
QTAILQ_REMOVE(&xendevs, xendev, next);
|
||||
|
||||
qdev_unplug(&xendev->qdev, NULL);
|
||||
qdev_unplug(DEVICE(xendev), NULL);
|
||||
}
|
||||
|
||||
void xen_pv_insert_xendev(struct XenLegacyDevice *xendev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue