From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPIqk-0004dD-EY for qemu-devel@nongnu.org; Tue, 01 May 2012 15:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPIqh-00079B-GB for qemu-devel@nongnu.org; Tue, 01 May 2012 15:35:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37787 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPIqh-00078u-AA for qemu-devel@nongnu.org; Tue, 01 May 2012 15:34:59 -0400 Message-ID: <4FA03AE0.6010102@suse.de> Date: Tue, 01 May 2012 21:34:56 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1335896294-9530-1-git-send-email-aliguori@us.ibm.com> <1335896294-9530-12-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1335896294-9530-12-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 11/14] qbus: move get_fw_dev_path to DeviceClass List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Wanpeng Li , Peter Maydell , qemu-devel@nongnu.org, Paolo Bonzini Am 01.05.2012 20:18, schrieb Anthony Liguori: > It should have never been a bus method. >=20 > Signed-off-by: Anthony Liguori > --- [...] > diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c > index 4a468f8..5044018 100644 > --- a/hw/ide/qdev.c > +++ b/hw/ide/qdev.c > @@ -25,22 +25,13 @@ > =20 > /* --------------------------------- */ > =20 > -static char *idebus_get_fw_dev_path(DeviceState *dev); > - > #define TYPE_IDE_BUS "IDE" > - > -static void ide_bus_class_init(ObjectClass *klass, void *data) > -{ > - BusClass *k =3D BUS_CLASS(klass); > - > - k->get_fw_dev_path =3D idebus_get_fw_dev_path; > -} > +#define IDE_BUS(obj) OBJECT_CHECK(IDEBus, (obj), TYPE_IDE_BUS) Move macro to preceding patch? Otherwise looks good. /-F --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg