From: Shawn Guo <[email protected]>

Change clk_register_mux to use kzalloc, just like what all other basic
clk registration functions do.

Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
Cc: Arnd Bergman <[email protected]>
Cc: Olof Johansson <[email protected]>
Cc: Russell King <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Richard Zhao <[email protected]>
Cc: Saravana Kannan <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Rajendra Nayak <[email protected]>
Cc: Viresh Kumar <[email protected]>
---
 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__);
-- 
1.7.5.4


_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to