aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-01 09:56:13 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:57:20 -0500
commitf82de8f08a7d5add367067e4b7911c9fc9892bb0 (patch)
tree6eb6a681c404baa79e279d0809dd179dd3a9766e
parent959f733a296a69564a075d60d8c821ad8e258623 (diff)
qdev: convert rtl8139 to reset
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/rtl8139.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index b3542a3d85..3bd72e5c86 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3465,7 +3465,6 @@ static int pci_rtl8139_init(PCIDevice *dev)
PCI_ADDRESS_SPACE_MEM, rtl8139_mmio_map);
qdev_get_macaddr(&dev->qdev, s->macaddr);
- qemu_register_reset(rtl8139_reset, s);
rtl8139_reset(s);
s->vc = qdev_get_vlan_client(&dev->qdev,
rtl8139_can_receive, rtl8139_receive, NULL,
@@ -3489,9 +3488,10 @@ static int pci_rtl8139_init(PCIDevice *dev)
}
static PCIDeviceInfo rtl8139_info = {
- .qdev.name = "rtl8139",
- .qdev.size = sizeof(RTL8139State),
- .init = pci_rtl8139_init,
+ .qdev.name = "rtl8139",
+ .qdev.size = sizeof(RTL8139State),
+ .qdev.reset = rtl8139_reset,
+ .init = pci_rtl8139_init,
};
static void rtl8139_register_devices(void)