| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] MIPS: ath79: avoid a kernel bug on AR913X |
| From: | Gabor Juhos <juhosg@openwrt.org> |
| Date: | Sun, 11 Dec 2011 17:11:41 +0100 |
| Cc: | linux-mips@linux-mips.org, Gabor Juhos <juhosg@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Wireless mac registration causes a BUG on AR913X SoCs due to
a missing 'else'.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
arch/mips/ath79/dev-wmac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/ath79/dev-wmac.c b/arch/mips/ath79/dev-wmac.c
index 24f5469..e215070 100644
--- a/arch/mips/ath79/dev-wmac.c
+++ b/arch/mips/ath79/dev-wmac.c
@@ -96,7 +96,7 @@ void __init ath79_register_wmac(u8 *cal_data)
{
if (soc_is_ar913x())
ar913x_wmac_setup();
- if (soc_is_ar933x())
+ else if (soc_is_ar933x())
ar933x_wmac_setup();
else
BUG();
--
1.7.2.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 4/5] MIPS: BCM63XX: add RNG driver platform_device stub, Sergei Shtylyov |
|---|---|
| Next by Date: | Re: [PATCH 04/62] mips: remove the second argument of k[un]map_atomic(), Cong Wang |
| Previous by Thread: | [Patch v2]: Fix ld pr11138 FAILures on mips*., David Daney |
| Next by Thread: | [PATCH 1/3] MIPS: Alchemy: use IS_ENABLED() macro, Florian Fainelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |