clk: use kzalloc in clk_register_mux
authorShawn Guo <shawn.guo@linaro.org>
Tue, 27 Mar 2012 07:23:20 +0000 (15:23 +0800)
committerMike 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

index c71ad1f..50e0595 100644 (file)
@@ -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__);