]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/cpu/irq.c
x86: Add DSDT table for supporting ACPI on QEMU
[u-boot] / arch / x86 / cpu / irq.c
index 6be2f81734670fe77bb274bf1d71243138bbd79a..35b29f69d8459cceb0fbbc5c0f3dd4e12b992564 100644 (file)
@@ -225,17 +225,22 @@ static int create_pirq_routing_table(void)
        return 0;
 }
 
-void pirq_init(void)
+int pirq_init(void)
 {
+       int ret;
+
        cpu_irq_init();
 
-       if (create_pirq_routing_table()) {
+       ret = create_pirq_routing_table();
+       if (ret) {
                debug("Failed to create pirq routing table\n");
-       } else {
-               /* Route PIRQ */
-               pirq_route_irqs(pirq_routing_table->slots,
-                               get_irq_slot_count(pirq_routing_table));
+               return ret;
        }
+       /* Route PIRQ */
+       pirq_route_irqs(pirq_routing_table->slots,
+                       get_irq_slot_count(pirq_routing_table));
+
+       return 0;
 }
 
 u32 write_pirq_routing_table(u32 addr)