hostapd: remove old button hotplug script
[openwrt.git] / target / linux / ar71xx / patches-3.8 / 027-MIPS-ath79-fix-WMAC-IRQ-resource-assignment.patch
1 From acb28a2a03a93e351e26230511a9f38d0da62fdd Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Fri, 15 Feb 2013 18:51:57 +0000
4 Subject: [PATCH] MIPS: ath79: fix WMAC IRQ resource assignment
5
6 commit e3b25cead4b58fbf60270ba73a1669bf9e5635f5 upstream.
7
8 The '.start' field of the IRQ resource assigned twice
9 in ar934x_wmac_setup(). The second assignment must
10 set the '.end' field. Fix it.
11
12 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
13 Patchwork: http://patchwork.linux-mips.org/patch/4954/
14 Signed-off-by: John Crispin <blogic@openwrt.org>
15 ---
16  arch/mips/ath79/dev-wmac.c |    2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/arch/mips/ath79/dev-wmac.c
20 +++ b/arch/mips/ath79/dev-wmac.c
21 @@ -107,7 +107,7 @@ static void ar934x_wmac_setup(void)
22         ath79_wmac_resources[0].start = AR934X_WMAC_BASE;
23         ath79_wmac_resources[0].end = AR934X_WMAC_BASE + AR934X_WMAC_SIZE - 1;
24         ath79_wmac_resources[1].start = ATH79_IP2_IRQ(1);
25 -       ath79_wmac_resources[1].start = ATH79_IP2_IRQ(1);
26 +       ath79_wmac_resources[1].end = ATH79_IP2_IRQ(1);
27  
28         t = ath79_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
29         if (t & AR934X_BOOTSTRAP_REF_CLK_40)