[PATCH] ppc: remove unused sys_free_irq

Fernando Luis Vázquez Cao fernando at oss.ntt.co.jp
Wed Aug 22 18:24:09 EST 2007


sys_free_irq is never used, so delete it.

Signed-off-by: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
---

diff -urNp linux-2.6.23-rc3-orig/arch/ppc/amiga/ints.c linux-2.6.23-rc3/arch/ppc/amiga/ints.c
--- linux-2.6.23-rc3-orig/arch/ppc/amiga/ints.c	2007-08-22 17:14:32.000000000 +0900
+++ linux-2.6.23-rc3/arch/ppc/amiga/ints.c	2007-08-22 17:15:27.000000000 +0900
@@ -75,23 +75,6 @@ irq_node_t *new_irq_node(void)
 	return NULL;
 }
 
-void sys_free_irq(unsigned int irq, void *dev_id)
-{
-	if (irq < IRQ1 || irq > IRQ7) {
-		printk("%s: Incorrect IRQ %d\n", __FUNCTION__, irq);
-		return;
-	}
-
-	if (irq_list[irq].dev_id != dev_id)
-		printk("%s: Removing probably wrong IRQ %d from %s\n",
-		       __FUNCTION__, irq, irq_list[irq].devname);
-
-	irq_list[irq].handler = (*mach_default_handler)[irq];
-	irq_list[irq].flags   = 0;
-	irq_list[irq].dev_id  = NULL;
-	irq_list[irq].devname = default_names[irq];
-}
-
 asmlinkage void process_int(unsigned long vec, struct pt_regs *fp)
 {
 	if (vec >= VEC_INT1 && vec <= VEC_INT7 && !MACH_IS_BVME6000) {





More information about the Linuxppc-dev mailing list