]> 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>
Thu, 27 Sep 2012 07:28:17 +0000 (17:28 +1000)
commit0f3c76d41817b5a29f5f4f69af11537ea5ce7ead
tree8133586625bc544abc726776c6b491b7f3688f3c
parentd3b09f0c93d859b47620539498a6ebce85403b6c
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