aboutsummaryrefslogtreecommitdiffstats
path: root/hw/e1000.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-11-19 19:29:07 +0100
committerMichael S. Tsirkin <mst@redhat.com>2010-11-22 10:00:06 +0200
commitb90c73cf475d69959dde208d00961c3cb7a57475 (patch)
tree0d940813e4ebb1304719669de403d854bb7b16d8 /hw/e1000.c
parentbba5ed772a562fefdb218df8d821c3b537ce5759 (diff)
pci: Replace unneeded type casts in calls of pci_register_bar
There is no need for these type casts (as other existing code shows). So re-write the first argument without type cast (and remove a related TODO comment). Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r--hw/e1000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/e1000.c b/hw/e1000.c
index 677165f83..b7f585bc0 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -1130,10 +1130,10 @@ static int pci_e1000_init(PCIDevice *pci_dev)
d->mmio_index = cpu_register_io_memory(e1000_mmio_read,
e1000_mmio_write, d);
- pci_register_bar((PCIDevice *)d, 0, PNPMMIO_SIZE,
+ pci_register_bar(&d->dev, 0, PNPMMIO_SIZE,
PCI_BASE_ADDRESS_SPACE_MEMORY, e1000_mmio_map);
- pci_register_bar((PCIDevice *)d, 1, IOPORT_SIZE,
+ pci_register_bar(&d->dev, 1, IOPORT_SIZE,
PCI_BASE_ADDRESS_SPACE_IO, ioport_map);
memmove(d->eeprom_data, e1000_eeprom_template,