rk: cpu.h: fix gcc warning for cpu_is_rk3066b
author黄涛 <huangtao@rock-chips.com>
Mon, 21 Jan 2013 02:13:40 +0000 (10:13 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jan 2013 02:13:40 +0000 (10:13 +0800)
arch/arm/plat-rk/include/plat/cpu.h

index b730aa5d2c4b263b0bf4f6c3e438f5e5df0130c6..2db2016cbf33212c7ff0a43bd2e24a47c37b6ea3 100644 (file)
@@ -41,14 +41,14 @@ static inline bool cpu_is_rk30xx(void)
 
 static inline bool cpu_is_rk3066b(void)
 {
-       return readl_relaxed(RK30_ROM_BASE + 0x27f0) == 0x33303041
+       return(readl_relaxed(RK30_ROM_BASE + 0x27f0) == 0x33303041
            && readl_relaxed(RK30_ROM_BASE + 0x27f4) == 0x32303131
            && readl_relaxed(RK30_ROM_BASE + 0x27f8) == 0x31313131
-           && readl_relaxed(RK30_ROM_BASE + 0x27fc) == 0x56313030
-           || readl_relaxed(RK30_ROM_BASE + 0x27f0) == 0x33303042
+           && readl_relaxed(RK30_ROM_BASE + 0x27fc) == 0x56313030)
+           ||(readl_relaxed(RK30_ROM_BASE + 0x27f0) == 0x33303042
            && readl_relaxed(RK30_ROM_BASE + 0x27f4) == 0x32303132
            && readl_relaxed(RK30_ROM_BASE + 0x27f8) == 0x31303031
-           && readl_relaxed(RK30_ROM_BASE + 0x27fc) == 0x56313030;
+           && readl_relaxed(RK30_ROM_BASE + 0x27fc) == 0x56313030);
 }
 
 static inline bool cpu_is_rk3188(void)