ARM: OMAP1: irq.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 7 Dec 2014 12:26:49 +0000 (13:26 +0100)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Jan 2015 17:53:51 +0000 (09:53 -0800)
Remove the function irq_bank_readl() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/irq.c

index 122ef67939a232cf2c2260e8ceae68870c7d7de9..a8a533df24e102a12a01f6b0897209b014a0bc60 100644 (file)
@@ -64,11 +64,6 @@ u32 omap_irq_flags;
 static unsigned int irq_bank_count;
 static struct omap_irq_bank *irq_banks;
 
-static inline unsigned int irq_bank_readl(int bank, int offset)
-{
-       return omap_readl(irq_banks[bank].base_reg + offset);
-}
-
 static inline void irq_bank_writel(unsigned long value, int bank, int offset)
 {
        omap_writel(value, irq_banks[bank].base_reg + offset);