diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-04 18:33:07 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-02-24 00:19:06 +0100 |
commit | 07dc788054d714a07df08e2eacc8c2e1c47b9a58 (patch) | |
tree | 5a5436a35e76190b98b7c6ac23a293792376b3f2 /hw/i386/pc.c | |
parent | c6f10a5876a81f7a016714df06730c48210ee419 (diff) |
parallel: Factor out common parallel_hds_isa_init()
Maintainers of affected machines cc'ed.
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>
Diffstat (limited to 'hw/i386/pc.c')
-rw-r--r-- | hw/i386/pc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 18ed2634f3..ed623e1090 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1420,12 +1420,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, } serial_hds_isa_init(isa_bus, MAX_SERIAL_PORTS); - - for(i = 0; i < MAX_PARALLEL_PORTS; i++) { - if (parallel_hds[i]) { - parallel_init(isa_bus, i, parallel_hds[i]); - } - } + parallel_hds_isa_init(isa_bus, MAX_PARALLEL_PORTS); a20_line = qemu_allocate_irqs(handle_a20_line_change, first_cpu, 2); i8042 = isa_create_simple(isa_bus, "i8042"); |