i2c: davinci: preparation for switch to common clock framework
authorMurali Karicheri <m-karicheri2@ti.com>
Thu, 30 Aug 2012 18:10:36 +0000 (18:10 +0000)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 14 Sep 2012 13:20:33 +0000 (15:20 +0200)
commit2bdbfa9c4a14f0015d1e189b17175a989d7c2a40
tree7fe9ffd44ad3e42765f6c599f7b41c73cb234608
parentc5d3cd6dc2dc106ca9fcc8cb6587754ee6cfc86e
i2c: davinci: preparation for switch to common clock framework

As a first step towards migrating davinci platforms to use common clock
framework, replace all instances of clk_enable() with clk_prepare_enable()
and clk_disable() with clk_disable_unprepare(). Until the platform is
switched to use the CONFIG_HAVE_CLK_PREPARE Kconfig variable, this just
adds a might_sleep() call and would work without any issues.

This will make it easy later to switch to common clk based implementation
of clk driver from DaVinci specific driver.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-davinci.c
This page took 0.041105 seconds and 5 git commands to generate.