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 >> <j...@tribudubois.net> 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 -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg