From patchwork Tue Jun 14 17:35:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 879622 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5EHa0Sc022067 for ; Tue, 14 Jun 2011 17:36:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831Ab1FNRf5 (ORCPT ); Tue, 14 Jun 2011 13:35:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089Ab1FNRfy (ORCPT ); Tue, 14 Jun 2011 13:35:54 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5EHZ7xJ006068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 14 Jun 2011 13:35:08 -0400 Received: from redhat.com (dhcp-1-35.tlv.redhat.com [10.35.1.35]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id p5EHZ1jg018682; Tue, 14 Jun 2011 13:35:02 -0400 Date: Tue, 14 Jun 2011 20:35:20 +0300 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Paul Brook , Kevin Wolf , Gerd Hoffmann , Anthony Liguori , Riku Voipio , Richard Henderson , Avi Kivity , Marcelo Tosatti , qemu-devel@nongnu.org, Alex Williamson , Blue Swirl , Stefan Weil , Jan Kiszka , Paolo Bonzini , Christoph Hellwig , "Michael S. Tsirkin" , Aurelien Jarno , Stefan Hajnoczi , Alexander Graf , Isaku Yamahata , kvm@vger.kernel.org Subject: [PATCH 01/10] ppce500: move device/vendor/class id to qdev Message-ID: <3f7ffd8874e571082a1536364d38a4fd6ccddb46.1308072799.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mutt-Fcc: =sent User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Jun 2011 17:36:00 +0000 (UTC) Signed-off-by: Michael S. Tsirkin --- 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 = {