arm: mx28: fix bit operation in clock setting
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 10 Sep 2011 10:26:07 +0000 (12:26 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Nov 2011 19:59:12 +0000 (19:59 +0000)
commitc2735391fbc68feae10d6d14e60956c8106e725f
tree6b1c1a42873095f7357b69dc60abba3f965e14a6
parent9b7c547f7747991fe62f622698ea1bf470f256f4
arm: mx28: fix bit operation in clock setting

reg | (1 << clk->enable_shift) always evaluates to true. Switch it
to & which makes much more sense. Same fix as 13be9f00 (ARM i.MX28: fix
bit operation) at a different location.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: stable@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-mxs/clock-mx28.c