]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: omap2plus: remove irq-related global base addresses
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 15 Nov 2011 17:22:45 +0000 (17:22 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 15 Nov 2011 18:14:02 +0000 (18:14 +0000)
After the MULTI_IRQ_HANDLER conversion, a couple of global
variables can be removed.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/mach-omap2/include/mach/omap4-common.h
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/irq.c
arch/arm/mach-omap2/omap4-common.c
arch/arm/plat-omap/include/plat/irqs.h

index e4bd876197341194dd7d0752af97de20d64d4707..e7c85a9a472e4d66dbbec60b0f9b51f44399e463 100644 (file)
@@ -28,8 +28,6 @@
 extern void __iomem *l2cache_base;
 #endif
 
-extern void __iomem *gic_dist_base_addr;
-
 extern void __init gic_init_irq(void);
 extern void omap_smc1(u32 fn, u32 arg);
 
index 25d20ced03e13cb18bc7d6f27d44d11c5c671d90..547f83145e30b447212c845fc54817d844693125 100644 (file)
@@ -316,9 +316,6 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data)
        return omap_hwmod_set_postsetup_state(oh, *(u8 *)data);
 }
 
-/* See irq.c, omap4-common.c and entry-macro.S */
-void __iomem *omap_irq_base;
-
 static void __init omap_common_init_early(void)
 {
        omap2_check_revision();
index ec52bee0e089b73893917b591dab6bad7e5e4c51..42b1d659191215582f1288893a919881ee0dd13d 100644 (file)
@@ -149,6 +149,7 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
 
 static void __init omap_init_irq(u32 base, int nr_irqs)
 {
+       void __iomem *omap_irq_base;
        unsigned long nr_of_irqs = 0;
        unsigned int nr_banks = 0;
        int i, j;
index 35ac3e5f6e94c4077e712cd8ae4333771eef3526..073f12a666a46cb34cd21ac2bddd9b8df85a2390 100644 (file)
 void __iomem *l2cache_base;
 #endif
 
-void __iomem *gic_dist_base_addr;
-
-
 void __init gic_init_irq(void)
 {
+       void __iomem *omap_irq_base;
+       void __iomem *gic_dist_base_addr;
+
        /* Static mapping, never released */
        gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K);
        BUG_ON(!gic_dist_base_addr);
index 8b19a63fab68b3b4fe697459d0564b4acc1debfd..90b95dd2064ef15fc75d3e67c0f3afe09374ba06 100644 (file)
 #define INTCPS_NR_IRQS         96
 
 #ifndef __ASSEMBLY__
-extern void __iomem *omap_irq_base;
 void omap1_init_irq(void);
 void omap2_init_irq(void);
 void omap3_init_irq(void);