Commit 80a7ed81 authored by Gabor Juhos's avatar Gabor Juhos Committed by Ralf Baechle

MIPS: ath79: sort case statements in ath79_detect_sys_type

Sort the case statements alphabetically in order to improve
readability.
Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Acked-by: default avatarLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Cc: linux-mips@linux-mips.org
Cc: mcgrof@infradead.org
Patchwork: https://patchwork.linux-mips.org/patch/3505/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 703327dd
...@@ -116,18 +116,6 @@ static void __init ath79_detect_sys_type(void) ...@@ -116,18 +116,6 @@ static void __init ath79_detect_sys_type(void)
rev = id & AR724X_REV_ID_REVISION_MASK; rev = id & AR724X_REV_ID_REVISION_MASK;
break; break;
case REV_ID_MAJOR_AR9330:
ath79_soc = ATH79_SOC_AR9330;
chip = "9330";
rev = id & AR933X_REV_ID_REVISION_MASK;
break;
case REV_ID_MAJOR_AR9331:
ath79_soc = ATH79_SOC_AR9331;
chip = "9331";
rev = id & AR933X_REV_ID_REVISION_MASK;
break;
case REV_ID_MAJOR_AR913X: case REV_ID_MAJOR_AR913X:
minor = id & AR913X_REV_ID_MINOR_MASK; minor = id & AR913X_REV_ID_MINOR_MASK;
rev = id >> AR913X_REV_ID_REVISION_SHIFT; rev = id >> AR913X_REV_ID_REVISION_SHIFT;
...@@ -145,6 +133,18 @@ static void __init ath79_detect_sys_type(void) ...@@ -145,6 +133,18 @@ static void __init ath79_detect_sys_type(void)
} }
break; break;
case REV_ID_MAJOR_AR9330:
ath79_soc = ATH79_SOC_AR9330;
chip = "9330";
rev = id & AR933X_REV_ID_REVISION_MASK;
break;
case REV_ID_MAJOR_AR9331:
ath79_soc = ATH79_SOC_AR9331;
chip = "9331";
rev = id & AR933X_REV_ID_REVISION_MASK;
break;
default: default:
panic("ath79: unknown SoC, id:0x%08x", id); panic("ath79: unknown SoC, id:0x%08x", id);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment