OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d7e3d
)
clk: use kzalloc in clk_register_mux
author
Shawn Guo
<shawn.guo@linaro.org>
Tue, 27 Mar 2012 07:23:20 +0000
(15:23 +0800)
committer
Mike Turquette
<mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:38 +0000
(16:37 -0700)
Change clk_register_mux to use kzalloc, just like what all other basic
clk registration functions do.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-mux.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-mux.c
b/drivers/clk/clk-mux.c
index
c71ad1f
..
50e0595
100644
(file)
--- a/
drivers/clk/clk-mux.c
+++ b/
drivers/clk/clk-mux.c
@@
-97,7
+97,7
@@
struct clk *clk_register_mux(struct device *dev, const char *name,
{
struct clk_mux *mux;
- mux = k
m
alloc(sizeof(struct clk_mux), GFP_KERNEL);
+ mux = k
z
alloc(sizeof(struct clk_mux), GFP_KERNEL);
if (!mux) {
pr_err("%s: could not allocate mux clk\n", __func__);