aboutsummaryrefslogtreecommitdiff
path: root/hw/display
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-06-10 07:32:21 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-06-15 22:05:28 +0200
commitb7a1b5483ee0179f0e5d31cf43678fa225227614 (patch)
tree85d76ecd34fda42f1f2f8871c30afbcac4c40945 /hw/display
parentdbe4070e59ab86f4a25de9cd12ed56f9eb68049b (diff)
downloadqemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.zip
qemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.tar.gz
qemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.tar.bz2
auxbus: New aux_bus_realize(), pairing with aux_bus_init()
aux_bus_init() encapsulates the creation of an aux-bus and its aux-to-i2c-bridge device. Create aux_bus_realize() to similarly encapsulate their realization. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-33-armbru@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r--hw/display/xlnx_dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c
index 31d0c5a..a714cf8 100644
--- a/hw/display/xlnx_dp.c
+++ b/hw/display/xlnx_dp.c
@@ -1266,7 +1266,7 @@ static void xlnx_dp_realize(DeviceState *dev, Error **errp)
DisplaySurface *surface;
struct audsettings as;
- qdev_init_nofail(DEVICE(s->aux_bus->bridge));
+ aux_bus_realize(s->aux_bus);
qdev_init_nofail(DEVICE(s->dpcd));
aux_map_slave(AUX_SLAVE(s->dpcd), 0x0000);