mirror of https://github.com/xemu-project/xemu.git
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
|
@ -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…
Reference in New Issue