[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] pci_create() is now unused, remove it
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH 5/6] pci_create() is now unused, remove it |
Date: |
Fri, 25 Sep 2009 03:53:52 +0200 |
Signed-off-by: Markus Armbruster <address@hidden>
---
hw/pci.c | 18 ------------------
hw/pci.h | 1 -
2 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index e43b53e..ec0fc7c 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -764,24 +764,6 @@ void pci_info(Monitor *mon)
pci_for_each_device(0, pci_info_device);
}
-PCIDevice *pci_create(const char *name, const char *devaddr)
-{
- PCIBus *bus;
- int devfn;
- DeviceState *dev;
-
- bus = pci_get_bus_devfn(&devfn, devaddr);
- if (!bus) {
- fprintf(stderr, "Invalid PCI device address %s for device %s\n",
- devaddr, name);
- exit(1);
- }
-
- dev = qdev_create(&bus->qbus, name);
- qdev_prop_set_uint32(dev, "addr", devfn);
- return (PCIDevice *)dev;
-}
-
static const char * const pci_nic_models[] = {
"ne2k_pci",
"i82551",
diff --git a/hw/pci.h b/hw/pci.h
index 51c5085..689461f 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -336,7 +336,6 @@ typedef struct {
void pci_qdev_register(PCIDeviceInfo *info);
void pci_qdev_register_many(PCIDeviceInfo *info);
-PCIDevice *pci_create(const char *name, const char *devaddr);
PCIDevice *pci_create_noinit(PCIBus *bus, int devfn, const char *name);
PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);
--
1.6.2.5
- [Qemu-devel] [PATCH 0/6] Fix pci_add not to exit on error & other fixes, Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 2/6] Fix pci_add storage not to exit on bad first argument, Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 1/6] Fix pci_vga_init() not to ignore bus argument, Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 6/6] Rename pci_create_noinit() to pci_create(), Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 4/6] Fix pci_add nic not to exit on bad model, Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 3/6] Make it obvious that pci_nic_init() can't fail, Markus Armbruster, 2009/09/24
- [Qemu-devel] [PATCH 5/6] pci_create() is now unused, remove it,
Markus Armbruster <=
- Re: [Qemu-devel] [PATCH 0/6] Fix pci_add not to exit on error & other fixes, Gerd Hoffmann, 2009/09/25
- Re: [Qemu-devel] [PATCH 0/6] Fix pci_add not to exit on error & other fixes, Luiz Capitulino, 2009/09/25
- Re: [Qemu-devel] [PATCH 0/6] Fix pci_add not to exit on error & other fixes, Mark McLoughlin, 2009/09/28