On 08.05.2017 22:57, Eduardo Habkost wrote: > There's no reason to keep the soundhw table in arch_init.c. Move > that code to a new hw/audio/soundhw.c file. > > While moving the code, trivial coding style issues were fixed. > > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- > Changes v2 -> v3: > * Update hw/ppc/prep.c to include hw/audio/audio.h too > > Changes v1 -> v2: > * Rebase to latest qemu.git master > --- > include/hw/audio/audio.h | 3 + > include/sysemu/arch_init.h | 2 - > arch_init.c | 124 ----------------------------------- > hw/audio/soundhw.c | 156 > +++++++++++++++++++++++++++++++++++++++++++++ > hw/ppc/prep.c | 1 + > vl.c | 1 + > hw/audio/Makefile.objs | 2 + > 7 files changed, 163 insertions(+), 126 deletions(-) > create mode 100644 hw/audio/soundhw.c
Good idea! Reviewed-by: Thomas Huth <th...@redhat.com>