diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-11 17:05:07 -0500 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-15 10:02:07 -0500 |
commit | 395012756c15ce0a9f73c098d8eebb0fe3c9a7e6 (patch) | |
tree | 9ed5f1b42cbb69e8c889bc18701a545ca8feb477 /hw/core/qdev-properties-system.c | |
parent | 828ade86ee925c132496113e7f88b22162d92ec5 (diff) | |
download | qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.zip qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.gz qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.bz2 |
qdev: Make qdev_find_global_prop() get Object* argument
Make the code more generic and not specific to TYPE_DEVICE.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201211220529.2290218-11-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
-rw-r--r-- | hw/core/qdev-properties-system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index 9ac9b95..57e63c6 100644 --- a/hw/core/qdev-properties-system.c +++ b/hw/core/qdev-properties-system.c @@ -36,7 +36,7 @@ static bool check_prop_still_unset(DeviceState *dev, const char *name, const void *old_val, const char *new_val, Error **errp) { - const GlobalProperty *prop = qdev_find_global_prop(dev, name); + const GlobalProperty *prop = qdev_find_global_prop(OBJECT(dev), name); if (!old_val) { return true; |