Blackfin: SMP: convert to irq chip functions
authorMike Frysinger <vapier@gentoo.org>
Fri, 18 Mar 2011 07:03:23 +0000 (03:03 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Mar 2011 08:01:09 +0000 (04:01 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf561/smp.c

index 82b94e1378860a49f77c087f3b08b01059bd5120..5d68bf613b0b9dbe0fde9e2e3055fe23c0375f63 100644 (file)
@@ -154,9 +154,13 @@ void platform_clear_ipi(unsigned int cpu, int irq)
 void __cpuinit bfin_local_timer_setup(void)
 {
 #if defined(CONFIG_TICKSOURCE_CORETMR)
+       struct irq_chip *chip = get_irq_chip(IRQ_CORETMR);
+       struct irq_desc *desc = irq_to_desc(IRQ_CORETMR);
+
        bfin_coretmr_init();
        bfin_coretmr_clockevent_init();
-       get_irq_chip(IRQ_CORETMR)->unmask(IRQ_CORETMR);
+
+       chip->irq_unmask(&desc->irq_data);
 #else
        /* Power down the core timer, just to play safe. */
        bfin_write_TCNTL(0);