Skip to content

Commit

Permalink
MIPS: ATH79: Avoid a kernel bug on AR913X
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed Feb 20, 2012
1 parent f79eaeb commit 87b4345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/ath79/dev-wmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 87b4345

Please sign in to comment.