clk: sunxi: Remove use of variable length array
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 4 Mar 2016 17:18:41 +0000 (09:18 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 15 Mar 2016 22:15:27 +0000 (15:15 -0700)
commit1295e36a488efdad9b21eb0aeabfd0b23a87a313
treea9e88976cc07ba9208efe49fe51fe2270a6ebff0
parentd3781a74bcc98c9c833d181676975075a50eb946
clk: sunxi: Remove use of variable length array

Using an array allocated on the stack may lead to stack overflows
and other problems so let's move the allocation to the heap
instead. This silences the following checker warning as well.

drivers/clk/sunxi/clk-sun8i-mbus.c:36:29: warning: Variable length array is used

Cc: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi/clk-sun8i-mbus.c