diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-09 10:51:49 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 10:41:04 -0600 |
commit | 4be9f0d11cf2dbb1eb3f55b33c87d6df3aa7d578 (patch) | |
tree | 63f72eaf204e81336e4ab4341a10eaf6147c5f68 /hw/qdev-properties.c | |
parent | ba02430f1a681173cff5336c626d6edc5ea268db (diff) |
qdev: make DeviceInfo private
Introduce accessors and remove any code that directly accesses DeviceInfo
members.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r-- | hw/qdev-properties.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 028bee7da6..2e3ef702ea 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -1015,7 +1015,7 @@ static Property *qdev_prop_find(DeviceState *dev, const char *name) Property *prop; /* device properties */ - prop = qdev_prop_walk(qdev_get_info(dev)->props, name); + prop = qdev_prop_walk(qdev_get_props(dev), name); if (prop) return prop; @@ -1221,7 +1221,7 @@ void qdev_prop_set_globals(DeviceState *dev) QTAILQ_FOREACH(prop, &global_props, next) { if (strcmp(object_get_typename(OBJECT(dev)), prop->driver) != 0 && - strcmp(qdev_get_info(dev)->bus_info->name, prop->driver) != 0) { + strcmp(qdev_get_bus_info(dev)->name, prop->driver) != 0) { continue; } if (qdev_prop_parse(dev, prop->property, prop->value) != 0) { |