From 8de3a1a30600d8dd3d4fe5f8e6bb42087951d07b Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 9 Apr 2011 18:47:49 +0000 Subject: ar71xx: cleanup SoC detection code git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26559 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/setup.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'target/linux/ar71xx/files/arch/mips') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c index 37ce27dece..3a73229d9b 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c @@ -114,19 +114,19 @@ static void __init ar71xx_detect_sys_type(void) case REV_ID_MAJOR_AR7240: ar71xx_soc = AR71XX_SOC_AR7240; chip = "7240"; - rev = (id & AR724X_REV_ID_REVISION_MASK); + rev = id & AR724X_REV_ID_REVISION_MASK; break; case REV_ID_MAJOR_AR7241: ar71xx_soc = AR71XX_SOC_AR7241; chip = "7241"; - rev = (id & AR724X_REV_ID_REVISION_MASK); + rev = id & AR724X_REV_ID_REVISION_MASK; break; case REV_ID_MAJOR_AR7242: ar71xx_soc = AR71XX_SOC_AR7242; chip = "7242"; - rev = (id & AR724X_REV_ID_REVISION_MASK); + rev = id & AR724X_REV_ID_REVISION_MASK; break; case REV_ID_MAJOR_AR913X: @@ -149,22 +149,19 @@ static void __init ar71xx_detect_sys_type(void) case REV_ID_MAJOR_AR9341: ar71xx_soc = AR71XX_SOC_AR9341; chip = "9341"; - rev = ar71xx_reset_rr(AR71XX_RESET_REG_REV_ID) & - AR934X_REV_ID_REVISION_MASK; + rev = id & AR934X_REV_ID_REVISION_MASK; break; case REV_ID_MAJOR_AR9342: ar71xx_soc = AR71XX_SOC_AR9342; chip = "9342"; - rev = ar71xx_reset_rr(AR71XX_RESET_REG_REV_ID) & - AR934X_REV_ID_REVISION_MASK; + rev = id & AR934X_REV_ID_REVISION_MASK; break; case REV_ID_MAJOR_AR9344: ar71xx_soc = AR71XX_SOC_AR9344; chip = "9344"; - rev = ar71xx_reset_rr(AR71XX_RESET_REG_REV_ID) & - AR934X_REV_ID_REVISION_MASK; + rev = id & AR934X_REV_ID_REVISION_MASK; break; default: -- cgit v1.2.3