Nothing uses the global gic_present variable anymore; mips_gic_present()
should be used instead. Remove the dead code.
Signed-off-by: Paul Burton <redacted>
Cc: Jason Cooper <redacted>
Cc: Marc Zyngier <redacted>
Cc: Ralf Baechle <redacted>
Cc: Thomas Gleixner <redacted>
Cc: linux-mips@linux-mips.org
---
drivers/irqchip/irq-mips-gic.c | 2 --
include/linux/irqchip/mips-gic.h | 6 ------
2 files changed, 8 deletions(-)
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c
index 75877c793c4f..5e1966777ab7 100644
--- a/drivers/irqchip/irq-mips-gic.c
+++ b/drivers/irqchip/irq-mips-gic.c
@@ -39,7 +39,6 @@
#define GIC_SHARED_TO_HWIRQ(x) (GIC_SHARED_HWIRQ_BASE + (x))
#define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE)
-unsigned int gic_present;
void __iomem *mips_gic_base;
struct gic_pcpu_mask {@@ -781,7 +780,6 @@ static int __init gic_of_init(struct device_node *node,
/* Ensure GIC region is enabled before trying to access it */
__sync();
}
- gic_present = true;
__gic_init(gic_base, gic_len, cpu_vec, 0, node);
diff --git a/include/linux/irqchip/mips-gic.h b/include/linux/irqchip/mips-gic.h
index 63c5f87034c9..113010c8dd8b 100644
--- a/include/linux/irqchip/mips-gic.h
+++ b/include/linux/irqchip/mips-gic.h
@@ -17,16 +17,10 @@
#ifdef CONFIG_MIPS_GIC
-extern unsigned int gic_present;
-
extern int gic_get_c0_compare_int(void);
extern int gic_get_c0_perfcount_int(void);
extern int gic_get_c0_fdc_int(void);
-#else /* CONFIG_MIPS_GIC */
-
-#define gic_present 0
-
#endif /* CONFIG_MIPS_GIC */
#endif /* __LINUX_IRQCHIP_MIPS_GIC_H */
--
2.14.0