linux-mips
[Top] [All Lists]

[PATCH] MIPS: ath79: fix WMAC IRQ resource assignment

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: ath79: fix WMAC IRQ resource assignment
From: Gabor Juhos <juhosg@openwrt.org>
Date: Fri, 15 Feb 2013 20:51:57 +0100
Cc: John Crispin <blogic@openwrt.org>, linux-mips <linux-mips@linux-mips.org>, Gabor Juhos <juhosg@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
The '.start' field of the IRQ resource assigned twice
in ar934x_wmac_setup(). The second assignment must
set the '.end' field. Fix it.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
Note:

This is a fix for the existing code. The modified version of
the QCA955X specific patch will come later.

-Gabor
---
 arch/mips/ath79/dev-wmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/ath79/dev-wmac.c b/arch/mips/ath79/dev-wmac.c
index 4f6c4e3..d71d745 100644
--- a/arch/mips/ath79/dev-wmac.c
+++ b/arch/mips/ath79/dev-wmac.c
@@ -107,7 +107,7 @@ static void ar934x_wmac_setup(void)
        ath79_wmac_resources[0].start = AR934X_WMAC_BASE;
        ath79_wmac_resources[0].end = AR934X_WMAC_BASE + AR934X_WMAC_SIZE - 1;
        ath79_wmac_resources[1].start = ATH79_IP2_IRQ(1);
-       ath79_wmac_resources[1].start = ATH79_IP2_IRQ(1);
+       ath79_wmac_resources[1].end = ATH79_IP2_IRQ(1);
 
        t = ath79_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
        if (t & AR934X_BOOTSTRAP_REF_CLK_40)
-- 
1.7.10


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: ath79: fix WMAC IRQ resource assignment, Gabor Juhos <=