aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2011-11-15 12:22:45 -0500
committerMarc Zyngier <marc.zyngier@arm.com>2011-11-15 13:14:02 -0500
commitab65be268adaae59da5b1306b425a7859f955669 (patch)
tree033547127752370398114d943f76aa6379bf85b1 /arch/arm/mach-omap2
parent6b2f55d7851aa358d3a99cff344c560c4967f042 (diff)
ARM: omap2plus: remove irq-related global base addresses
After the MULTI_IRQ_HANDLER conversion, a couple of global variables can be removed. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/include/mach/omap4-common.h2
-rw-r--r--arch/arm/mach-omap2/io.c3
-rw-r--r--arch/arm/mach-omap2/irq.c1
-rw-r--r--arch/arm/mach-omap2/omap4-common.c6
4 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/include/mach/omap4-common.h b/arch/arm/mach-omap2/include/mach/omap4-common.h
index e4bd87619734..e7c85a9a472e 100644
--- a/arch/arm/mach-omap2/include/mach/omap4-common.h
+++ b/arch/arm/mach-omap2/include/mach/omap4-common.h
@@ -28,8 +28,6 @@
28extern void __iomem *l2cache_base; 28extern void __iomem *l2cache_base;
29#endif 29#endif
30 30
31extern void __iomem *gic_dist_base_addr;
32
33extern void __init gic_init_irq(void); 31extern void __init gic_init_irq(void);
34extern void omap_smc1(u32 fn, u32 arg); 32extern void omap_smc1(u32 fn, u32 arg);
35 33
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 25d20ced03e1..547f83145e30 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -316,9 +316,6 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data)
316 return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); 316 return omap_hwmod_set_postsetup_state(oh, *(u8 *)data);
317} 317}
318 318
319/* See irq.c, omap4-common.c and entry-macro.S */
320void __iomem *omap_irq_base;
321
322static void __init omap_common_init_early(void) 319static void __init omap_common_init_early(void)
323{ 320{
324 omap2_check_revision(); 321 omap2_check_revision();
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index ec52bee0e089..42b1d6591912 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -149,6 +149,7 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
149 149
150static void __init omap_init_irq(u32 base, int nr_irqs) 150static void __init omap_init_irq(u32 base, int nr_irqs)
151{ 151{
152 void __iomem *omap_irq_base;
152 unsigned long nr_of_irqs = 0; 153 unsigned long nr_of_irqs = 0;
153 unsigned int nr_banks = 0; 154 unsigned int nr_banks = 0;
154 int i, j; 155 int i, j;
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 35ac3e5f6e94..073f12a666a4 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -28,11 +28,11 @@
28void __iomem *l2cache_base; 28void __iomem *l2cache_base;
29#endif 29#endif
30 30
31void __iomem *gic_dist_base_addr;
32
33
34void __init gic_init_irq(void) 31void __init gic_init_irq(void)
35{ 32{
33 void __iomem *omap_irq_base;
34 void __iomem *gic_dist_base_addr;
35
36 /* Static mapping, never released */ 36 /* Static mapping, never released */
37 gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K); 37 gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K);
38 BUG_ON(!gic_dist_base_addr); 38 BUG_ON(!gic_dist_base_addr);