]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
serial: Factor out common serial_hds_isa_init()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Feb 2015 17:33:05 +0000 (18:33 +0100)
committerAndreas Färber <afaerber@suse.de>
Mon, 23 Feb 2015 23:19:06 +0000 (00:19 +0100)
commitb6607a1a204d52fe13746cc9c3d2da4303e39b18
tree6b3ea8bd8e36c6186b309b62577aaa5b2a7a5e8b
parentaef0d55a4bc52b1713de88c100ba6dc451578e50
serial: Factor out common serial_hds_isa_init()

It's the same old loop copied five times, plus another instance where
it's clipped to two iterations and unrolled.

No external users of serial_isa_init() are left, so give it internal
linkage.

Maintainers of affected machines cc'ed.

Cc: Richard Henderson <rth@twiddle.net>
Cc: Anthony Liguori <aliguori@amazon.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/alpha/dp264.c
hw/char/serial-isa.c
hw/i386/pc.c
hw/mips/mips_fulong2e.c
hw/mips/mips_malta.c
hw/mips/mips_r4k.c
hw/sparc64/sun4u.c
include/hw/char/serial.h