clk: gemini: Read status before using the value
authorJoel Stanley <joel@jms.id.au>
Thu, 29 Jun 2017 06:01:07 +0000 (15:31 +0930)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 30 Jun 2017 01:47:35 +0000 (18:47 -0700)
commit785b62167d2fb9f2b98432627e503d3759a48de9
tree418a8a3d6de04437d7aaccf1754b2621d6091f74
parent2b286b09a048df80fd5f7dfc5057c2837679a1ab
clk: gemini: Read status before using the value

The probe does a shift and mask of val without having read it from the hardware.

Fixes: 846423f96721 ("clk: Add Gemini SoC clock controller")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-gemini.c