irqchip: brcmstb-l2: Eliminate dependency on ARM code
authorKevin Cernekee <cernekee@gmail.com>
Fri, 7 Nov 2014 06:44:20 +0000 (22:44 -0800)
committerJason Cooper <jason@lakedaemon.net>
Sun, 9 Nov 2014 04:02:10 +0000 (04:02 +0000)
The irq-brcmstb-l2 driver has a single dependency on the ARM code, the
do_bad_IRQ macro.  Expand this macro in-place so that the driver can be
built on non-ARM platforms.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lkml.kernel.org/r/1415342669-30640-6-git-send-email-cernekee@gmail.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-brcmstb-l2.c

index c15c840987d2808e82cf1b056c231005933c5f8b..c9bdf2087c2a7b6eb6546b8a65d49a28d7752fff 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
+#include <linux/spinlock.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
@@ -30,8 +31,6 @@
 #include <linux/irqchip.h>
 #include <linux/irqchip/chained_irq.h>
 
-#include <asm/mach/irq.h>
-
 #include "irqchip.h"
 
 /* Register offsets in the L2 interrupt controller */
@@ -63,7 +62,9 @@ static void brcmstb_l2_intc_irq_handle(unsigned int irq, struct irq_desc *desc)
                ~(__raw_readl(b->base + CPU_MASK_STATUS));
 
        if (status == 0) {
-               do_bad_IRQ(irq, desc);
+               raw_spin_lock(&desc->lock);
+               handle_bad_irq(irq, desc);
+               raw_spin_unlock(&desc->lock);
                goto out;
        }
 
This page took 0.02453 seconds and 5 git commands to generate.