Signed-off-by: David Ahern <daah...@cisco.com>
---
 hw/pc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index 50795e8..18ec0df 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1138,11 +1138,13 @@ void pc_basic_device_init(qemu_irq *isa_irq,
         }
     }
 
+#ifdef CONFIG_PARALLEL
     for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
         if (parallel_hds[i]) {
             parallel_init(i, parallel_hds[i]);
         }
     }
+#endif
 
     a20_line = qemu_allocate_irqs(handle_a20_line_change, first_cpu, 2);
     i8042 = isa_create_simple("i8042");
-- 
1.7.3.4


Reply via email to