Patchwork [3/8] x86_64 config: fix compile for CONFIG_PARALLEL=n

login
register
mail settings
Submitter David S. Ahern
Date Jan. 13, 2011, 6:34 a.m.
Message ID <1294900477-23722-4-git-send-email-daahern@cisco.com>
Download mbox | patch
Permalink /patch/78663/
State New
Headers show

Comments

David S. Ahern - Jan. 13, 2011, 6:34 a.m.
Signed-off-by: David Ahern <daahern@cisco.com>
---
 hw/pc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

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");