From 51954d565fc5566897f6a6d90feb62e4944cebc5 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 17 Nov 2009 11:28:41 +0100 Subject: Fix qdev property type definition for isa serial/parallel devices Use the correct qdev property type for these devices. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/serial.c') diff --git a/hw/serial.c b/hw/serial.c index 006326056..e7538ac8c 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -900,7 +900,7 @@ static ISADeviceInfo serial_isa_info = { .qdev.size = sizeof(ISASerialState), .init = serial_isa_initfn, .qdev.props = (Property[]) { - DEFINE_PROP_HEX32("index", ISASerialState, index, -1), + DEFINE_PROP_UINT32("index", ISASerialState, index, -1), DEFINE_PROP_HEX32("iobase", ISASerialState, iobase, -1), DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1), DEFINE_PROP_CHR("chardev", ISASerialState, state.chr), -- cgit v1.2.3