]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: vio fix
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:49:20 +0000 (16:49 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:49:20 +0000 (16:49 -0800)
From: Anton Blanchard <anton@samba.org>

It doesn't link.  Add a chunk which got lost.

arch/ppc64/kernel/vio.c

index 330be2f77e2211a43420694be6cf794be735bb5c..39ab38854f91d8eeaf119eab24d49d6ddf8b79bd 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/ppcdebug.h>
 #include <asm/vio.h>
 #include <asm/hvcall.h>
+#include "open_pic.h"
 
 #define DBGENTER() pr_debug("%s entered\n", __FUNCTION__)
 
@@ -244,7 +245,7 @@ struct vio_dev * __devinit vio_register_device(struct device_node *of_node)
        viodev->irq = (unsigned int) -1;
        irq_p = (unsigned int *)get_property(of_node, "interrupts", 0);
        if (irq_p) {
-               viodev->irq = irq_offset_up(*irq_p);
+               viodev->irq = openpic_to_irq(virt_irq_create_mapping(*irq_p));
        }
 
        /* init generic 'struct device' fields: */