]> git.baikalelectronics.ru Git - kernel.git/commit
clk: s2mps11: Remove useless check for clk_table
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 21 May 2014 11:23:00 +0000 (13:23 +0200)
committerMike Turquette <mturquette@linaro.org>
Fri, 23 May 2014 22:44:03 +0000 (15:44 -0700)
commitf3672cedcb1cb96f56da6fe1771c1abf0df6ebe9
tree61a2f8cda2437ab88e0d7ef51f52226432355301
parente9ad85665b3462edad6d470969459ca69161d28e
clk: s2mps11: Remove useless check for clk_table

There is no need for checking if 'clk_table' is not NULL twice (first
after allocation and second at the end of probe()). Also move allocation
of this 'clk_table' to probe from s2mps11_clk_parse_dt as this is
logical place for it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-s2mps11.c