From: "Andreas Färber" <afaerber@suse.de>
To: Peter Maydell <peter.maydell@linaro.org>,
Alistair Francis <alistair.francis@xilinx.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH v1 1/1] char: cadence_uart: Convert to realize()
Date: Thu, 03 Jul 2014 18:59:52 +0200 [thread overview]
Message-ID: <53B58C08.6030206@suse.de> (raw)
In-Reply-To: <CAFEAcA_DTPfsWW7wykX0yPga-kibH4kf7yNYJH1sVM3p6KnifQ@mail.gmail.com>
Am 03.07.2014 18:46, schrieb Peter Maydell:
> On 24 June 2014 07:06, Alistair Francis <alistair.francis@xilinx.com> wrote:
>> 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 <alistair.francis@xilinx.com>
>> ---
>>
>> 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)
>
> Typo in your new function name :-)
>
> Otherwise
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
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
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2014-07-03 17:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 6:06 [Qemu-devel] [PATCH v1 1/1] char: cadence_uart: Convert to realize() Alistair Francis
2014-06-27 0:11 ` Peter Crosthwaite
2014-06-27 10:23 ` Peter Maydell
2014-07-03 16:46 ` Peter Maydell
2014-07-03 16:59 ` Andreas Färber [this message]
2014-07-03 23:17 ` Peter Crosthwaite
2015-01-05 22:28 ` Alistair Francis
2014-07-04 6:50 ` Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53B58C08.6030206@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).