From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXbs-0005O4-DL for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWXbq-00073n-TG for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:41:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXbq-00073b-EW for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:41:02 -0400 Date: Tue, 14 Jun 2011 20:41:16 +0300 From: "Michael S. Tsirkin" Message-ID: <20110614174116.GA13298@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH resend] ppce500: move device/vendor/class id to qdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony Liguori , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Alex Williamson This is on top of my pci tree. Signed-off-by: Michael S. Tsirkin --- Resending, +qemu-devel. sorry about the noise. 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