]> 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>
Thu, 13 Sep 2012 01:01:20 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Sep 2012 06:04:42 +0000 (16:04 +1000)
commitbedbba51f7bba39eda29fbeea26496a3b2d8a097
treeaf8af02232953a0380ef0bf28fbc66e9efe3359f
parentebadca3a9977f68d2301b0ac2e405790732b24a7
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