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

login
register
mail settings
Submitter Andreas Färber
Date Nov. 26, 2012, 12:12 a.m.
Message ID <1353888766-6951-3-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/201610/
State New
Headers show

Comments

Andreas Färber - Nov. 26, 2012, 12:12 a.m.
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(-)

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;
 }