diff mbox

[RFC,02/34] qbus: QOM'ify qbus_realize()

Message ID 1353888766-6951-3-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber Nov. 26, 2012, 12:12 a.m. UTC
Add the designated Error-reporting argument, even if currently unused.

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 hw/qdev.c |    6 +++---
 1 Datei geändert, 3 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)
diff mbox

Patch

diff --git a/hw/qdev.c b/hw/qdev.c
index c2d9b48..e7c9493 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -397,7 +397,7 @@  DeviceState *qdev_find_recursive(BusState *bus, const char *id)
     return NULL;
 }
 
-static void qbus_realize(BusState *bus)
+static void qbus_realize(BusState *bus, Error **err)
 {
     const char *typename = object_get_typename(OBJECT(bus));
     char *buf;
@@ -440,7 +440,7 @@  void qbus_create_inplace(BusState *bus, const char *typename,
 
     bus->parent = parent;
     bus->name = name ? g_strdup(name) : NULL;
-    qbus_realize(bus);
+    qbus_realize(bus, NULL);
 }
 
 BusState *qbus_create(const char *typename, DeviceState *parent, const char *name)
@@ -452,7 +452,7 @@  BusState *qbus_create(const char *typename, DeviceState *parent, const char *nam
 
     bus->parent = parent;
     bus->name = name ? g_strdup(name) : NULL;
-    qbus_realize(bus);
+    qbus_realize(bus, NULL);
 
     return bus;
 }