diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-24 18:42:50 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 20:46:59 -0500 |
commit | 94a943ef5b56c5773a3fd5c8e93be3f16268d9a9 (patch) | |
tree | ef1354c1d2b384efbe91e6db641c7a4b6331b3cc /hw/ne2000.c | |
parent | a10fcec6168bfd41e7104f870a00f83addf58710 (diff) |
ne2000: pci_dev has this very value with the right type
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r-- | hw/ne2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c index b17a0fada0..e8a77635b9 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -820,7 +820,7 @@ static int pci_ne2000_init(PCIDevice *pci_dev) PCI_ADDRESS_SPACE_IO, ne2000_map); s = &d->ne2000; s->irq = d->dev.irq[0]; - s->pci_dev = (PCIDevice *)d; + s->pci_dev = pci_dev; qdev_get_macaddr(&d->dev.qdev, s->macaddr); ne2000_reset(s); s->vc = qdev_get_vlan_client(&d->dev.qdev, |