Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10363b58 authored by Shawn Guo's avatar Shawn Guo Committed by Mike Turquette
Browse files

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: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent d4d7e3dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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__);