diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-05-22 14:02:14 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-05-22 22:03:03 -0400 |
commit | bb178da701382a230e26d90cf94e8a24b280e0d9 (patch) | |
tree | cbfb1fd1e52b6dcb29f545b6198797bcb21c20ef /drivers/clk | |
parent | 7f05e28f9dd3eb7a3f27c6f50b715995dc7a88c5 (diff) |
clk: shmobile: mstp: Fix the is_enabled() operation
The MSTP[SC]R registers have clock stop bits, not clock enable bits. The
bit value should thus be inverted in the is_enabled() operation.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/shmobile/clk-mstp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c index 1f6324e29a80..2d2fe773ac81 100644 --- a/drivers/clk/shmobile/clk-mstp.c +++ b/drivers/clk/shmobile/clk-mstp.c | |||
@@ -112,7 +112,7 @@ static int cpg_mstp_clock_is_enabled(struct clk_hw *hw) | |||
112 | else | 112 | else |
113 | value = clk_readl(group->smstpcr); | 113 | value = clk_readl(group->smstpcr); |
114 | 114 | ||
115 | return !!(value & BIT(clock->bit_index)); | 115 | return !(value & BIT(clock->bit_index)); |
116 | } | 116 | } |
117 | 117 | ||
118 | static const struct clk_ops cpg_mstp_clock_ops = { | 118 | static const struct clk_ops cpg_mstp_clock_ops = { |