mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
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: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:
parent
d4d7e3ddc7
commit
10363b5838
@ -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__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user