diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-13 18:01:41 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-02-27 09:15:38 +0100 |
commit | 4c8a2054e78780622f5d005a52e0bc000f87eb93 (patch) | |
tree | bb4f6812356ca9ccde60f865485fde62e1f44f21 /hw/vfio | |
parent | f0830823d017af1a4e7dad228e5870cad7eb764b (diff) | |
download | qemu-4c8a2054e78780622f5d005a52e0bc000f87eb93.zip qemu-4c8a2054e78780622f5d005a52e0bc000f87eb93.tar.gz qemu-4c8a2054e78780622f5d005a52e0bc000f87eb93.tar.bz2 |
hw/vfio/ccw: Simplify using DEVICE() macro
QOM parenthood relationship is:
VFIOCCWDevice -> S390CCWDevice -> CcwDevice -> DeviceState
We can directly use the QOM DEVICE() macro to get the parent object.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20230213170145.45666-3-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r-- | hw/vfio/ccw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index 0354737..503de94 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -618,7 +618,7 @@ static void vfio_ccw_get_device(VFIOGroup *group, VFIOCCWDevice *vcdev, vcdev->vdev.ops = &vfio_ccw_ops; vcdev->vdev.type = VFIO_DEVICE_TYPE_CCW; vcdev->vdev.name = name; - vcdev->vdev.dev = &vcdev->cdev.parent_obj.parent_obj; + vcdev->vdev.dev = DEVICE(vcdev); return; |