mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
828ade86ee
commit
395012756c
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue