mx5/clock: fix clear bit fields issue in _clk_ccgr_disable function
commit7f67bff58662604874778e6853e5c394f944e554
authorJason Wang <jason77.wang@gmail.com>
Sat, 21 Aug 2010 08:24:04 +0000 (21 16:24 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Sat, 21 Aug 2010 10:22:43 +0000 (21 12:22 +0200)
tree56bc733a19732d137b824f571f9e1b6e0f5e4351
parenta38b372fc2a3d8fe7ddbeab94d4c8bcb721f2403
mx5/clock: fix clear bit fields issue in _clk_ccgr_disable function

We can see MXC_CCM_CCGRx_MOD_OFF is defined as 0 while
MXC_CCM_CCGRx_CG_MASK is defined as 0x3 in crm_regs.h, here in the
_clk_ccgr_disable function, we want to clear the corresponding enable
bit fields to disable this clock, so we should choose MASK instead of
OFF otherwise clocks can't be disabled.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/clock-mx51.c