summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/irq.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-02-20 10:26:48 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-26 20:35:46 +0100
commit5746c99dfa09231fa24cac1986de4661ea79a80f (patch)
tree31624a8a38e2e8327103486c186c44e5f602bf6d /arch/sparc64/kernel/irq.c
parent[SPARC]: Remove the broken SUN_AURORA driver. (diff)
downloadlinux-5746c99dfa09231fa24cac1986de4661ea79a80f.tar.xz
linux-5746c99dfa09231fa24cac1986de4661ea79a80f.zip
[SPARC64]: virt_irq_free only needed when CONFIG_PCI_MSI
Noticed by Meelis Roos. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/irq.c')
-rw-r--r--arch/sparc64/kernel/irq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c
index b5ff3ee5ace1..c443db184371 100644
--- a/arch/sparc64/kernel/irq.c
+++ b/arch/sparc64/kernel/irq.c
@@ -109,6 +109,7 @@ static unsigned char virt_irq_alloc(unsigned int real_irq)
return ent;
}
+#ifdef CONFIG_PCI_MSI
static void virt_irq_free(unsigned int virt_irq)
{
unsigned int real_irq;
@@ -121,6 +122,7 @@ static void virt_irq_free(unsigned int virt_irq)
__bucket(real_irq)->virt_irq = 0;
}
+#endif
static unsigned int virt_to_real_irq(unsigned char virt_irq)
{