diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-07 20:36:12 +0400 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-06-20 14:31:32 +0200 |
commit | 822335eb518b5b565f8938dbe4dba6bda56f6093 (patch) | |
tree | e30f61ada65c7bbe73c2c9361bd322c2a90fa782 /include/hw/isa | |
parent | 446de8b68a33834b9130f5ba182e8cdf8749c759 (diff) | |
download | qemu-822335eb518b5b565f8938dbe4dba6bda56f6093.zip qemu-822335eb518b5b565f8938dbe4dba6bda56f6093.tar.gz qemu-822335eb518b5b565f8938dbe4dba6bda56f6093.tar.bz2 |
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>
Diffstat (limited to 'include/hw/isa')
-rw-r--r-- | include/hw/isa/isa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index c2fdd70..9559340 100644 --- a/include/hw/isa/isa.h +++ b/include/hw/isa/isa.h @@ -29,7 +29,7 @@ static inline uint16_t applesmc_port(void) Object *obj = object_resolve_path_type("", TYPE_APPLE_SMC, NULL); 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; } |