forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
5a4fe9b55d
commit
918d7f6f68
@ -232,7 +232,7 @@ static void __init sunxi_mux_clk_setup(struct device_node *node,
|
|||||||
{
|
{
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
const char *clk_name = node->name;
|
const char *clk_name = node->name;
|
||||||
const char **parents = kmalloc(sizeof(char *) * 5, GFP_KERNEL);
|
const char *parents[5];
|
||||||
void *reg;
|
void *reg;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user