clk: s2mps11: remove redundant static variables declaration
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 20 Jan 2016 10:14:23 +0000 (19:14 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 29 Jan 2016 20:47:02 +0000 (12:47 -0800)
commit36da4def1ea7a5f698d3096d10316f911e819621
tree11951f58ef837e175fd0a393987ac2b7832f2af5
parent31ad0e2a9ab0667b40a654e5ba412987587229ea
clk: s2mps11: remove redundant static variables declaration

The clk_table and clk_data are declared static. The clk_table
contains the three clock data structures belonging to the s2mps11
driver. In the probe function it gets stored into clk_data.

Remove clk_table and refer directly to clk_data.

clk_data, itself, is also declared static. Declare locally it
and allocate it inside the probe function, as it is not used
anywhere else.

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>
drivers/clk/clk-s2mps11.c