summaryrefslogtreecommitdiff
path: root/hw/openpic.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/openpic.c
parentbba5ed772a562fefdb218df8d821c3b537ce5759 (diff)
downloadqemu-b90c73cf475d69959dde208d00961c3cb7a57475.tar.gz
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/openpic.c')
-rw-r--r--hw/openpic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/openpic.c b/hw/openpic.c
index 01bf15fc3b..f6b8f21272 100644
--- a/hw/openpic.c
+++ b/hw/openpic.c
@@ -1197,7 +1197,7 @@ qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus,
pci_conf[0x3d] = 0x00; // no interrupt pin
/* Register I/O spaces */
- pci_register_bar((PCIDevice *)opp, 0, 0x40000,
+ pci_register_bar(&opp->pci_dev, 0, 0x40000,
PCI_BASE_ADDRESS_SPACE_MEMORY, &openpic_map);
} else {
opp = qemu_mallocz(sizeof(openpic_t));