mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
isa: use get_uint() for "io-base"
The property is defined with DEFINE_PROP_UINT32(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-21-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
446de8b68a
commit
822335eb51
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ static inline uint16_t applesmc_port(void)
|
||||||
Object *obj = object_resolve_path_type("", TYPE_APPLE_SMC, NULL);
|
Object *obj = object_resolve_path_type("", TYPE_APPLE_SMC, NULL);
|
||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
return object_property_get_int(obj, APPLESMC_PROP_IO_BASE, NULL);
|
return object_property_get_uint(obj, APPLESMC_PROP_IO_BASE, NULL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue