From: Emilio López Date: Wed, 27 Mar 2013 21:20:43 +0000 (-0300) Subject: clk: sunxi: drop an unnecesary kmalloc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=918d7f6f68620e0721bb31402ebf87e15f826831;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Reviewed-by: Gregory CLEMENT Signed-off-by: Mike Turquette --- 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;