brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0087-irq-bcm2835-Fix-building-with-2708.patch
1 From e14cfb794033608cb17a1537d5cceaeb3842c41a Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Mon, 28 Sep 2015 23:38:59 +0100
4 Subject: [PATCH 087/156] irq-bcm2835: Fix building with 2708
5
6 ---
7  drivers/irqchip/irq-bcm2835.c | 3 ++-
8  1 file changed, 2 insertions(+), 1 deletion(-)
9
10 --- a/drivers/irqchip/irq-bcm2835.c
11 +++ b/drivers/irqchip/irq-bcm2835.c
12 @@ -82,6 +82,7 @@
13  #define NR_BANKS               3
14  #define IRQS_PER_BANK          32
15  #define NUMBER_IRQS            MAKE_HWIRQ(NR_BANKS, 0)
16 +#undef FIQ_START
17  #define FIQ_START              (NR_IRQS_BANK0 + MAKE_HWIRQ(NR_BANKS - 1, 0))
18  
19  static const int reg_pending[] __initconst = { 0x00, 0x04, 0x08 };
20 @@ -256,7 +257,7 @@ static int __init armctrl_of_init(struct
21                                         MAKE_HWIRQ(b, i) + NUMBER_IRQS);
22                         BUG_ON(irq <= 0);
23                         irq_set_chip(irq, &armctrl_chip);
24 -                       set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
25 +                       irq_set_probe(irq);
26                 }
27         }
28         init_FIQ(FIQ_START);