summary refs log tree commit diff stats
path: root/hw/ide/via.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/ide/via.c
parentbba5ed772a562fefdb218df8d821c3b537ce5759 (diff)
downloadfocaccia-qemu-b90c73cf475d69959dde208d00961c3cb7a57475.tar.gz
focaccia-qemu-b90c73cf475d69959dde208d00961c3cb7a57475.zip
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/ide/via.c')
-rw-r--r--hw/ide/via.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c
index b2c7cad622..2001a36b02 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -153,7 +153,7 @@ static int vt82c686b_ide_initfn(PCIDevice *dev)
     pci_set_long(pci_conf + PCI_CAPABILITY_LIST, 0x000000c0);
 
     qemu_register_reset(via_reset, d);
-    pci_register_bar((PCIDevice *)d, 4, 0x10,
+    pci_register_bar(&d->dev, 4, 0x10,
                            PCI_BASE_ADDRESS_SPACE_IO, bmdma_map);
 
     vmstate_register(&dev->qdev, 0, &vmstate_ide_pci, d);