]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
MIPS: ATH79: Avoid a kernel bug on AR913X
authorGabor Juhos <juhosg@openwrt.org>
Sun, 11 Dec 2011 15:11:41 +0000 (16:11 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 20 Feb 2012 17:33:19 +0000 (18:33 +0100)
Wireless mac registration causes a BUG on AR913X SoCs due to
a missing 'else'.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3182/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/dev-wmac.c

index 24f546985b69b5b572e60dfc60be97a92a726483..e21507052066fbfe5aaec7185286376f2eaf4d02 100644 (file)
@@ -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();