diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2016-01-20 11:14:21 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-01-29 21:46:06 +0100 |
commit | 26adc5fa276f7cfafda47d27849e6c1c3bff5aba (patch) | |
tree | 8194c237d96c72cfd61f470580aa7130bc3fa3db /drivers/clk/clk-s2mps11.c | |
parent | clk-divider: make sure read-only dividers do not write to their register (diff) | |
download | linux-26adc5fa276f7cfafda47d27849e6c1c3bff5aba.tar.xz linux-26adc5fa276f7cfafda47d27849e6c1c3bff5aba.zip |
clk: s2mps11: merge two for loops in one
The driver already loops once, there is no reason to loop again
for a different purpose. Merge the second loop into the first.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-s2mps11.c')
-rw-r--r-- | drivers/clk/clk-s2mps11.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index d266299dfdb1..e7b97f4f53d3 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -244,12 +244,6 @@ static int s2mps11_clk_probe(struct platform_device *pdev) ret = -ENOMEM; goto err_reg; } - } - - for (i = 0; i < S2MPS11_CLKS_NUM; i++) { - /* Skip clocks not present on S2MPS14 */ - if (!clks_init[i].name) - continue; clk_table[i] = s2mps11_clks[i].clk; } |