| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 02/16] MIPS: ath79: sort case statements in ath79_detect_sys_type |
| From: | Gabor Juhos <juhosg@openwrt.org> |
| Date: | Fri, 23 Dec 2011 19:25:28 +0100 |
| Cc: | linux-mips@linux-mips.org, "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>, mcgrof@infradead.org, Gabor Juhos <juhosg@openwrt.org> |
| In-reply-to: | <1324664742-3648-1-git-send-email-juhosg@openwrt.org> |
| References: | <1324664742-3648-1-git-send-email-juhosg@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Sort the case statements alphabetically in order to improve
readability.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
---
arch/mips/ath79/setup.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 80a7d40..24dfedf 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -116,18 +116,6 @@ static void __init ath79_detect_sys_type(void)
rev = id & AR724X_REV_ID_REVISION_MASK;
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:
minor = id & AR913X_REV_ID_MINOR_MASK;
rev = id >> AR913X_REV_ID_REVISION_SHIFT;
@@ -145,6 +133,18 @@ static void __init ath79_detect_sys_type(void)
}
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:
panic("ath79: unknown SoC, id:0x%08x", id);
}
--
1.7.2.1
|
| Previous by Date: | [PATCH 01/16] MIPS: ath79: add early_printk support for AR934X, Gabor Juhos |
|---|---|
| Next by Date: | [PATCH 03/16] MIPS: ath79: add SoC detection code for AR934X, Gabor Juhos |
| Previous by Thread: | [PATCH 01/16] MIPS: ath79: add early_printk support for AR934X, Gabor Juhos |
| Next by Thread: | [PATCH 03/16] MIPS: ath79: add SoC detection code for AR934X, Gabor Juhos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |