]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: rtc-mxc: adapt to the new i.mx clock framework
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 26 Sep 2012 01:34:38 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:29 +0000 (15:45 +1000)
commit09cee406d5e59c195291d5a848eaef1b77f5996c
treee55a23a18a05cb9d096632022efb04fdda2160fe
parent151b398d241e95e81339134b407953bd9662c957
rtc: rtc-mxc: adapt to the new i.mx clock framework

i.mx drivers should use clk_prepare_enable/clk_disable_unprepare() in
order to avoid clk warnings.

While at it, convert to devm_clk_get() since other devm_ functions are
used in this driver and it can also save some clk_put() calls.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-mxc.c