summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-15 10:10:42 +0000
committerAnatolij Gustschin <agust@denx.de>2011-12-05 21:55:25 +0100
commit65f0d12152cd9930acbefbd79e403e1688522901 (patch)
tree2691649274bacd1486d2ca6d5045fd1377274244 /arch
parent3a2b9f28c02884157ffd99e2d80454182242410d (diff)
downloadu-boot-imx-65f0d12152cd9930acbefbd79e403e1688522901.zip
u-boot-imx-65f0d12152cd9930acbefbd79e403e1688522901.tar.gz
u-boot-imx-65f0d12152cd9930acbefbd79e403e1688522901.tar.bz2
m68k: fix ambiguous bit testing
Building for some m68k boards results in the warning: cpu_init.c: In function 'cpu_init_f': cpu_init.c:287: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/cpu/mcf52x2/cpu_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/cpu/mcf52x2/cpu_init.c b/arch/m68k/cpu/mcf52x2/cpu_init.c
index 170bbfc..a98a926 100644
--- a/arch/m68k/cpu/mcf52x2/cpu_init.c
+++ b/arch/m68k/cpu/mcf52x2/cpu_init.c
@@ -284,7 +284,7 @@ void cpu_init_f(void)
mbar_writeLong(MCF_FMPLL_SYNCR,
MCF_FMPLL_SYNCR_MFD(0) | MCF_FMPLL_SYNCR_RFD(0));
#endif
- while (!mbar_readByte(MCF_FMPLL_SYNSR) & MCF_FMPLL_SYNSR_LOCK) ;
+ while (!(mbar_readByte(MCF_FMPLL_SYNSR) & MCF_FMPLL_SYNSR_LOCK)) ;
}
/*