Root/target/linux/ar71xx/patches-3.2/101-MIPS-ath79-avoid-a-kernel-bug-on-AR913X.patch

1From cf6855546330c3d349d41496975f32255bb6fd07 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Fri, 9 Dec 2011 22:02:57 +0100
4Subject: [PATCH 01/35] MIPS: ath79: avoid a kernel bug on AR913X
5
6Wireless mac registration causes a BUG on AR913X SoCs due to
7a missing 'else'.
8
9Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10---
11 arch/mips/ath79/dev-wmac.c | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14--- a/arch/mips/ath79/dev-wmac.c
15+++ b/arch/mips/ath79/dev-wmac.c
16@@ -96,7 +96,7 @@ void __init ath79_register_wmac(u8 *cal_
17 {
18     if (soc_is_ar913x())
19         ar913x_wmac_setup();
20- if (soc_is_ar933x())
21+ else if (soc_is_ar933x())
22         ar933x_wmac_setup();
23     else
24         BUG();
25

Archive Download this file



interactive