]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: qcom: Fix clk_rcg2_is_enabled() check
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 16 May 2014 23:07:08 +0000 (16:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:21:31 +0000 (11:21 -0700)
commit3ebbc9d1feb22dc4c2999f2f5732e6f619a6c8d3
tree44434327bd8127060cf811cdc0e634833be81793
parent5bd67f859ae7a88736c7c944dcaa6c9e3b338880
clk: qcom: Fix clk_rcg2_is_enabled() check

commit aa014149ba002155a084ec1e9328e95b70167cbb upstream.

If the bit is set the clock is off so we should be checking for
a clear bit, not a set bit. Invert the logic.

Fixes: bcd61c0f535a (clk: qcom: Add support for root clock generators (RCGs))
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/qcom/clk-rcg2.c