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>
                        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;
        }