]> 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>
Wed, 19 Sep 2012 05:30:26 +0000 (15:30 +1000)
commit442af3fb68db9bb17a9db107e739927e4f33fbbc
treeaf0413a54b63cd8d5fc7eed904e90b27b9f5d42e
parent866eb37b7e9e539f49516fc41c5bec52de492f6d
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