@@ -429,12 +429,9 @@ static irqreturn_t sh73a0_pint1_demux(int irq, void *dev_id)
static void __init sh73a0_init_intc(resource_size_t intcs0_start)
{
- int k, n;
- void __iomem *intevtsa;
-
- intevtsa = ioremap_nocache(intcs0_start + 0x100, PAGE_SIZE);
+ void __iomem *intevtsa =
+ ioremap_nocache(intcs0_start + 0x100, PAGE_SIZE);
- /* demux using INTEVTSA */
sh73a0_intcs_cascade.name = "INTCS cascade";
sh73a0_intcs_cascade.handler = sh73a0_intcs_demux;
sh73a0_intcs_cascade.dev_id = intevtsa;
@@ -500,6 +497,7 @@ static int __init intc_of_init(struct device_node *np,
}
static const struct of_device_id irq_of_match[] __initconst = {
+ { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }
{ .compatible = "renesas,sh_intc", .data = intc_of_init },
{ /*sentinel*/ }
};
@@ -514,10 +512,8 @@ void __init sh73a0_init_irq_of(void)
void __init sh73a0_init_irq(void)
{
- void __iomem *gic_dist_base = IOMEM(0xf0001000);
- void __iomem *gic_cpu_base = IOMEM(0xf0000100);
- gic_init(0, 29, gic_dist_base, gic_cpu_base);
+ gic_init(0, 29, IOMEM(0xf0001000), IOMEM(0xf0000100));
gic_arch_extn.irq_set_wake = sh73a0_set_wake;
register_intc_controller(&intcs_desc);