summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-mux.c
diff options
context:
space:
mode:
authorShawn Guo2012-03-27 09:23:20 +0200
committerMike Turquette2012-04-25 01:37:38 +0200
commit10363b5838b4d5dcbf01db219f35e91aa94f24c6 (patch)
tree4770275a2769aeee566ea97e1dfd549967b50921 /drivers/clk/clk-mux.c
parentclk: core: enforce clk_ops consistency (diff)
downloadkernel-qcow2-linux-10363b5838b4d5dcbf01db219f35e91aa94f24c6.tar.gz
kernel-qcow2-linux-10363b5838b4d5dcbf01db219f35e91aa94f24c6.tar.xz
kernel-qcow2-linux-10363b5838b4d5dcbf01db219f35e91aa94f24c6.zip
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>
Diffstat (limited to 'drivers/clk/clk-mux.c')
-rw-r--r--drivers/clk/clk-mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
index c71ad1f41a97..50e05953c8d3 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__);