summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-08-23 17:24:29 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:07 +0900
commit9ffa50afcce19f13228d940b3df7d1e168f0f13b (patch)
tree490e9a0578fef8b38b0b56170247d27e92da323d /drivers/clk
parentc6a258d20d539ac88f931da6ac4d10e45f4a86e0 (diff)
downloadlinux-3.10-9ffa50afcce19f13228d940b3df7d1e168f0f13b.tar.gz
linux-3.10-9ffa50afcce19f13228d940b3df7d1e168f0f13b.tar.bz2
linux-3.10-9ffa50afcce19f13228d940b3df7d1e168f0f13b.zip
clk: max77686: Correct callback used for checking clock status
Changing status of clock gates in max77686 requires i2c transfers, which can sleep, so this is done in prepare and unprepare callbacks. Due to this, checking whether whether the clock is ungated must be done in is_prepared() callback as well, for consistency. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-max77686.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c
index 9f57bc37cd6..e39d463c87e 100644
--- a/drivers/clk/clk-max77686.c
+++ b/drivers/clk/clk-max77686.c
@@ -66,7 +66,7 @@ static void max77686_clk_unprepare(struct clk_hw *hw)
MAX77686_REG_32KHZ, max77686->mask, ~max77686->mask);
}
-static int max77686_clk_is_enabled(struct clk_hw *hw)
+static int max77686_clk_is_prepared(struct clk_hw *hw)
{
struct max77686_clk *max77686 = to_max77686_clk(hw);
int ret;
@@ -84,7 +84,7 @@ static int max77686_clk_is_enabled(struct clk_hw *hw)
static struct clk_ops max77686_clk_ops = {
.prepare = max77686_clk_prepare,
.unprepare = max77686_clk_unprepare,
- .is_enabled = max77686_clk_is_enabled,
+ .is_prepared = max77686_clk_is_prepared,
};
static struct clk_init_data max77686_clks_init[MAX77686_CLKS_NUM] = {