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)
commit7002483c7b28a808d2bd4366b00c48911688c768
tree61a2f8cda2437ab88e0d7ef51f52226432355301
parentbf416bd457389bfe7371ba9074bcbd032d7a04cc
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