aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-03-27 03:23:20 -0400
committerMike Turquette <mturquette@linaro.org>2012-04-24 19:37:38 -0400
commit10363b5838b4d5dcbf01db219f35e91aa94f24c6 (patch)
tree4770275a2769aeee566ea97e1dfd549967b50921 /drivers/clk
parentd4d7e3ddc76c5ae3b4fbd15cb6f30aa78c28d788 (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.c2
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__);