From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2kMa-0002jC-8F for qemu-devel@nongnu.org; Thu, 03 Jul 2014 13:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2kMU-0001gJ-TA for qemu-devel@nongnu.org; Thu, 03 Jul 2014 13:00:00 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47928 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2kMU-0001fu-Mo for qemu-devel@nongnu.org; Thu, 03 Jul 2014 12:59:54 -0400 Message-ID: <53B58C08.6030206@suse.de> Date: Thu, 03 Jul 2014 18:59:52 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <22b9e550138022caa0368f12c12c55f1675420a5.1403588925.git.alistair.francis@xilinx.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1 1/1] char: cadence_uart: Convert to realize() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Alistair Francis Cc: Peter Crosthwaite , QEMU Developers , Alexander Graf Am 03.07.2014 18:46, schrieb Peter Maydell: > On 24 June 2014 07:06, Alistair Francis w= rote: >> SysBusDevice::init is deprecated. Convert to Object::init and Note that there is no Object::init, only TypeInfo::instance_init. >> Device::realize as prescribed by QOM conventions. >> >> Signed-off-by: Alistair Francis >> --- >> >> hw/char/cadence_uart.c | 29 ++++++++++++++++------------- >> 1 files changed, 16 insertions(+), 13 deletions(-) >> >> diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c >> index bf0c853..5a22a72 100644 >> --- a/hw/char/cadence_uart.c >> +++ b/hw/char/cadence_uart.c >> @@ -468,27 +468,30 @@ static void cadence_uart_reset(DeviceState *dev) >> uart_update_status(s); >> } >> >> -static int cadence_uart_init(SysBusDevice *dev) >> +static void candence_uart_realize(DeviceState *dev, Error **errp) >=20 > Typo in your new function name :-) >=20 > Otherwise > Reviewed-by: Peter Maydell LGTM, but I wonder whether the work Alex is doing on SysBusDevice requires us to introduce SysBusDevice::realize, called from Device::realize in SysBusDevice code? Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg