Root/target/linux/ar71xx/patches-3.3/120-MIPS-ath79-sort-case-statements-in-ath79_detect_sys_.patch

1From ccb089bbbe49949063cc348743605b3d813ca1c0 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Wed, 14 Mar 2012 10:45:20 +0100
4Subject: [PATCH 25/47] MIPS: ath79: sort case statements in ath79_detect_sys_type
5
6Sort the case statements alphabetically in order to improve
7readability.
8
9Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
11Cc: linux-mips@linux-mips.org
12Cc: mcgrof@infradead.org
13Patchwork: https://patchwork.linux-mips.org/patch/3505/
14Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
15---
16 arch/mips/ath79/setup.c | 24 ++++++++++++------------
17 1 files changed, 12 insertions(+), 12 deletions(-)
18
19--- a/arch/mips/ath79/setup.c
20+++ b/arch/mips/ath79/setup.c
21@@ -116,18 +116,6 @@ static void __init ath79_detect_sys_type
22         rev = id & AR724X_REV_ID_REVISION_MASK;
23         break;
24 
25- case REV_ID_MAJOR_AR9330:
26- ath79_soc = ATH79_SOC_AR9330;
27- chip = "9330";
28- rev = id & AR933X_REV_ID_REVISION_MASK;
29- break;
30-
31- case REV_ID_MAJOR_AR9331:
32- ath79_soc = ATH79_SOC_AR9331;
33- chip = "9331";
34- rev = id & AR933X_REV_ID_REVISION_MASK;
35- break;
36-
37     case REV_ID_MAJOR_AR913X:
38         minor = id & AR913X_REV_ID_MINOR_MASK;
39         rev = id >> AR913X_REV_ID_REVISION_SHIFT;
40@@ -145,6 +133,18 @@ static void __init ath79_detect_sys_type
41         }
42         break;
43 
44+ case REV_ID_MAJOR_AR9330:
45+ ath79_soc = ATH79_SOC_AR9330;
46+ chip = "9330";
47+ rev = id & AR933X_REV_ID_REVISION_MASK;
48+ break;
49+
50+ case REV_ID_MAJOR_AR9331:
51+ ath79_soc = ATH79_SOC_AR9331;
52+ chip = "9331";
53+ rev = id & AR933X_REV_ID_REVISION_MASK;
54+ break;
55+
56     default:
57         panic("ath79: unknown SoC, id:0x%08x", id);
58     }
59

Archive Download this file



interactive