ARM: mx28: check for gated clocks when setting saif divider
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 10 Sep 2011 10:29:43 +0000 (12:29 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 27 Jan 2012 03:50:14 +0000 (11:50 +0800)
commita62407256bbcba8e3f62695a87534050ceec0e6f
treeecd2c62f50c6a3f752ff7cfb9f5bae3a382e9e2a
parentbfc0b9c8a9d546eb53a3491c893fad72d96540cb
ARM: mx28: check for gated clocks when setting saif divider

Like with all other clocks, the divider for the SAIF devices should not
be altered when the clock is gated. Bail out when this is the case like
the other clocks do.

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