From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYFCy-0007Ip-At for qemu-devel@nongnu.org; Fri, 03 May 2013 08:35:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYFCw-0007IE-Jt for qemu-devel@nongnu.org; Fri, 03 May 2013 08:35:28 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60154 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYFCw-0007I1-Dt for qemu-devel@nongnu.org; Fri, 03 May 2013 08:35:26 -0400 Message-ID: <5183AF0B.3030507@suse.de> Date: Fri, 03 May 2013 14:35:23 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1367438026-27573-1-git-send-email-jcd@tribudubois.net> <5182B165.2010204@tribudubois.net> In-Reply-To: <5182B165.2010204@tribudubois.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jean-Christophe DUBOIS Cc: Peter Crosthwaite , qemu-devel@nongnu.org Am 02.05.2013 20:33, schrieb Jean-Christophe DUBOIS: > On 05/02/2013 02:16 PM, Peter Crosthwaite wrote: >> On Thu, May 2, 2013 at 5:53 AM, Jean-Christophe DUBOIS >> wrote: >>> +static int imx_i2c_init(SysBusDevice *dev) >>> +{ >> Use of the SysBusDeviceClass::init function is deprecated. Please use >> DeviceClass::realise or Object::init. With no reliance on properties I >> would suggest this one can be done as just an Object::init fn. > Could you point me to the documentation or an up to date example? Documentation is in include/hw/qdev-core.h and include/qom/object.h. Andreas --=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