Patchwork c6x: remove irq_set_virq_count

login
register
mail settings
Submitter Stephen Rothwell
Date March 22, 2012, 3:43 a.m.
Message ID <20120322144352.fe7f1840c3958f0496310ec4@canb.auug.org.au>
Download mbox | patch
Permalink /patch/148154/
State Not Applicable
Headers show

Comments

Stephen Rothwell - March 22, 2012, 3:43 a.m.
This function was copied over from the powerpc architecture but is not
used at all, so just remove it.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/c6x/include/asm/irq.h |   10 ----------
 arch/c6x/kernel/irq.c      |    9 ---------
 2 files changed, 0 insertions(+), 19 deletions(-)

This was found while cleaning up the PowerPC legacy iSeries platform.

Patch

diff --git a/arch/c6x/include/asm/irq.h b/arch/c6x/include/asm/irq.h
index a6ae3c9..7febe9d 100644
--- a/arch/c6x/include/asm/irq.h
+++ b/arch/c6x/include/asm/irq.h
@@ -174,16 +174,6 @@  extern void irq_set_default_host(struct irq_host *host);
 
 
 /**
- * irq_set_virq_count - Set the maximum number of virt irqs
- * @count: number of linux virtual irqs, capped with NR_IRQS
- *
- * This is mainly for use by platforms like iSeries who want to program
- * the virtual irq number in the controller to avoid the reverse mapping
- */
-extern void irq_set_virq_count(unsigned int count);
-
-
-/**
  * irq_create_mapping - Map a hardware interrupt into linux virq space
  * @host: host owning this hardware interrupt or NULL for default host
  * @hwirq: hardware irq number in that host space
diff --git a/arch/c6x/kernel/irq.c b/arch/c6x/kernel/irq.c
index 0929e4b..e2e4daa 100644
--- a/arch/c6x/kernel/irq.c
+++ b/arch/c6x/kernel/irq.c
@@ -279,15 +279,6 @@  void irq_set_default_host(struct irq_host *host)
 	irq_default_host = host;
 }
 
-void irq_set_virq_count(unsigned int count)
-{
-	pr_debug("irq: Trying to set virq count to %d\n", count);
-
-	BUG_ON(count < NR_PRIORITY_IRQS);
-	if (count < NR_IRQS)
-		irq_virq_count = count;
-}
-
 static int irq_setup_virq(struct irq_host *host, unsigned int virq,
 			    irq_hw_number_t hwirq)
 {