Skip to content

Commit

Permalink
clk: use kzalloc in clk_register_mux
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Mike Turquette committed Apr 24, 2012
1 parent d4d7e3d commit 10363b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk-mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down

0 comments on commit 10363b5

Please sign in to comment.