diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-27 03:23:20 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-04-24 19:37:38 -0400 |
commit | 10363b5838b4d5dcbf01db219f35e91aa94f24c6 (patch) | |
tree | 4770275a2769aeee566ea97e1dfd549967b50921 /drivers/clk | |
parent | d4d7e3ddc76c5ae3b4fbd15cb6f30aa78c28d788 (diff) |
clk: use kzalloc in clk_register_mux
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index c71ad1f41a97..50e05953c8d3 100644 --- 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, | |||
97 | { | 97 | { |
98 | struct clk_mux *mux; | 98 | struct clk_mux *mux; |
99 | 99 | ||
100 | mux = kmalloc(sizeof(struct clk_mux), GFP_KERNEL); | 100 | mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); |
101 | 101 | ||
102 | if (!mux) { | 102 | if (!mux) { |
103 | pr_err("%s: could not allocate mux clk\n", __func__); | 103 | pr_err("%s: could not allocate mux clk\n", __func__); |