Am 21.01.2014 11:19, schrieb Gerd Hoffmann: > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > hw/audio/hda-codec.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c > index 07a43bf..986f2a9 100644 > --- a/hw/audio/hda-codec.c > +++ b/hw/audio/hda-codec.c > @@ -559,6 +559,21 @@ static int hda_audio_post_load(void *opaque, int version) > return 0; > } > > +static void hda_audio_reset(DeviceState *dev) > +{ > + HDAAudioState *a = DO_UPCAST(HDAAudioState, hda.qdev, dev); [snip]
Can you please follow up with a QOM cast macro to avoid adding more DO_UPCAST() usages? Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg