[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev |
Date: |
Tue, 14 Jun 2011 20:35:20 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
hw/ppce500_pci.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
index 069af96..fc11af4 100644
--- a/hw/ppce500_pci.c
+++ b/hw/ppce500_pci.c
@@ -304,20 +304,13 @@ static int e500_pcihost_initfn(SysBusDevice *dev)
return 0;
}
-static int e500_host_bridge_initfn(PCIDevice *dev)
-{
- pci_config_set_vendor_id(dev->config, PCI_VENDOR_ID_FREESCALE);
- pci_config_set_device_id(dev->config, PCI_DEVICE_ID_MPC8533E);
- pci_config_set_class(dev->config, PCI_CLASS_PROCESSOR_POWERPC);
-
- return 0;
-}
-
static PCIDeviceInfo e500_host_bridge_info = {
.qdev.name = "e500-host-bridge",
.qdev.desc = "Host bridge",
.qdev.size = sizeof(PCIDevice),
- .init = e500_host_bridge_initfn,
+ .vendor_id = PCI_VENDOR_ID_FREESCALE,
+ .device_id = PCI_DEVICE_ID_MPC8533E,
+ .class_id = PCI_CLASS_PROCESSOR_POWERPC,
};
static SysBusDeviceInfo e500_pcihost_info = {
--
1.7.5.53.gc233e
- [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables, Michael S. Tsirkin, 2011/06/14
- [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables, Michael S. Tsirkin, 2011/06/14
- [Qemu-devel] [PATCH 02/10] usb-ehci: move device/vendor/class id to qdev, Michael S. Tsirkin, 2011/06/14
- [Qemu-devel] [PATCH 04/10] lsi53c895a: remove unused variables, Michael S. Tsirkin, 2011/06/14
- [Qemu-devel] [PATCH 05/10] wdt: remove unused variables, Michael S. Tsirkin, 2011/06/14
- [Qemu-devel] [PATCH 07/10] alpha/translate: remve unused variables, Michael S. Tsirkin, 2011/06/14