pc: use get_uint() for "iobase" property
TYPE_ISA_FDC's property "iobase" is defined with DEFINE_PROP_UINT32(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-31-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
605553654f
commit
1ea1572adf
|
@ -347,7 +347,7 @@ static int check_fdc(Object *obj, void *opaque)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
iobase = object_property_get_int(obj, "iobase", &local_err);
|
iobase = object_property_get_uint(obj, "iobase", &local_err);
|
||||||
if (local_err || iobase != 0x3f0) {
|
if (local_err || iobase != 0x3f0) {
|
||||||
error_free(local_err);
|
error_free(local_err);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue