]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: mach-imx: irq-common: Remove imx_irq_set_priority()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 25 Mar 2013 12:20:36 +0000 (09:20 -0300)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 1 Apr 2013 08:17:50 +0000 (16:17 +0800)
imx_irq_set_priority() is not used anywhere, so remove it.

This fixes the following sparse warnings:

arch/arm/mach-imx/irq-common.c:24:5: warning: symbol 'imx_irq_set_priority' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/irq-common.c

index b6e11458e5aea010d6a8cbbb89fcb2a86ce8db61..4b34f52dc46bc604f9cf1e618323df3c18e5ca12 100644 (file)
 
 #include "irq-common.h"
 
-int imx_irq_set_priority(unsigned char irq, unsigned char prio)
-{
-       struct irq_chip_generic *gc;
-       struct mxc_extra_irq *exirq;
-       int ret;
-
-       ret = -ENOSYS;
-
-       gc = irq_get_chip_data(irq);
-       if (gc && gc->private) {
-               exirq = gc->private;
-               if (exirq->set_priority)
-                       ret = exirq->set_priority(irq, prio);
-       }
-
-       return ret;
-}
-EXPORT_SYMBOL(imx_irq_set_priority);
-
 int mxc_set_irq_fiq(unsigned int irq, unsigned int type)
 {
        struct irq_chip_generic *gc;