projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4fe9b
)
clk: sunxi: drop an unnecesary kmalloc
author
Emilio López
<emilio@elopez.com.ar>
Wed, 27 Mar 2013 21:20:43 +0000
(18:20 -0300)
committer
Mike Turquette
<mturquette@linaro.org>
Thu, 4 Apr 2013 20:53:02 +0000
(13:53 -0700)
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>
drivers/clk/sunxi/clk-sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/clk/sunxi/clk-sunxi.c
b/drivers/clk/sunxi/clk-sunxi.c
index
daa51ab
..
0bb0eb4
100644
(file)
--- 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;