提交 10363b58 编写于 作者: S Shawn Guo 提交者: Mike Turquette

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: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 d4d7e3dd
...@@ -97,7 +97,7 @@ struct clk *clk_register_mux(struct device *dev, const char *name, ...@@ -97,7 +97,7 @@ struct clk *clk_register_mux(struct device *dev, const char *name,
{ {
struct clk_mux *mux; struct clk_mux *mux;
mux = kmalloc(sizeof(struct clk_mux), GFP_KERNEL); mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL);
if (!mux) { if (!mux) {
pr_err("%s: could not allocate mux clk\n", __func__); pr_err("%s: could not allocate mux clk\n", __func__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册