clk: max77686: Correct callback used for checking clock status
authorTomasz Figa <t.figa@samsung.com>
Thu, 12 Dec 2013 16:07:14 +0000 (17:07 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 8 Jan 2014 17:46:02 +0000 (09:46 -0800)
commit21c8ed2dc05bc5477d55000c5e96a4f3e95f408e
treeb593d6c31d3c0ad4679251b0de75f93d6e6f68fa
parent310e39c9b3203142a81cdfe7605fc6d2ed6cc25a
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>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-max77686.c