[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 25/26] isa bus: use realize for isa bus
From: |
Hu Tao |
Subject: |
[Qemu-devel] [PATCH 25/26] isa bus: use realize for isa bus |
Date: |
Sat, 22 Jun 2013 16:50:37 +0800 |
Cc: "Andreas Färber" <address@hidden>
Cc: Paolo Bonzini <address@hidden>
Cc: Anthony Liguori <address@hidden>
Cc: Avi Kivity <address@hidden>
Cc: Jim Meyering <address@hidden>
Signed-off-by: Hu Tao <address@hidden>
---
hw/isa/isa-bus.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c
index 136d17e..287f941 100644
--- a/hw/isa/isa-bus.c
+++ b/hw/isa/isa-bus.c
@@ -192,18 +192,17 @@ static void isabus_dev_print(Monitor *mon, DeviceState
*dev, int indent)
}
}
-static int isabus_bridge_init(SysBusDevice *dev)
+static void isabus_bridge_realize(DeviceState *dev, Error **errp)
{
/* nothing */
- return 0;
+ return;
}
static void isabus_bridge_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
- k->init = isabus_bridge_init;
+ dc->realize = isabus_bridge_realize;
dc->fw_name = "isa";
dc->no_user = 1;
}
--
1.8.3.1
- Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock, (continued)
[Qemu-devel] [PATCH 19/26] hpet: use realize for hpet, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 18/26] scsi esp: QOM'ify some more, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 22/26] kvmclock: QOM'ify some more, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 25/26] isa bus: use realize for isa bus,
Hu Tao <=
[Qemu-devel] [PATCH 23/26] kvmvapic realize, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 26/26] ehci: use realize for ehci, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 20/26] hpet: QOM'ify some more, Hu Tao, 2013/06/22
[Qemu-devel] [PATCH 24/26] ioapic: use realize for ioapic, Hu Tao, 2013/06/22
Re: [Qemu-devel] [PATCH 00/26] use realizefn for SysBusDevice, part 1, Andreas Färber, 2013/06/30