aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi
diff options
context:
space:
mode:
authorGravatar Emilio López <emilio@elopez.com.ar> 2013-03-27 18:20:43 -0300
committerGravatar Mike Turquette <mturquette@linaro.org> 2013-04-04 13:53:02 -0700
commit918d7f6f68620e0721bb31402ebf87e15f826831 (patch)
tree0ab4b3ce43ff7a89e69388ab46df3bc863198e26 /drivers/clk/sunxi
parentclk: sunxi: drop CLK_IGNORE_UNUSED (diff)
downloadlinux-918d7f6f68620e0721bb31402ebf87e15f826831.tar.gz
linux-918d7f6f68620e0721bb31402ebf87e15f826831.tar.bz2
linux-918d7f6f68620e0721bb31402ebf87e15f826831.zip
clk: sunxi: drop an unnecesary kmalloc
clk_register will copy this information, so we can just use a normal array and do one less dynamic allocation. Signed-off-by: Emilio López <emilio@elopez.com.ar> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/sunxi')
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index daa51ab9701f..0bb0eb4ed217 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -232,7 +232,7 @@ static void __init sunxi_mux_clk_setup(struct device_node *node,
{
struct clk *clk;
const char *clk_name = node->name;
- const char **parents = kmalloc(sizeof(char *) * 5, GFP_KERNEL);
+ const char *parents[5];
void *reg;
int i = 0;