diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-27 07:23:20 (GMT) |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-04-24 23:37:38 (GMT) |
commit | 10363b5838b4d5dcbf01db219f35e91aa94f24c6 (patch) | |
tree | 4770275a2769aeee566ea97e1dfd549967b50921 | |
parent | d4d7e3ddc76c5ae3b4fbd15cb6f30aa78c28d788 (diff) | |
download | linux-10363b5838b4d5dcbf01db219f35e91aa94f24c6.tar.xz |
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>
-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 c71ad1f..50e0595 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, { struct clk_mux *mux; - mux = kmalloc(sizeof(struct clk_mux), GFP_KERNEL); + mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); if (!mux) { pr_err("%s: could not allocate mux clk\n", __func__); |