On 4/12/2012 6:32 AM, Mike Turquette wrote: > From: Shawn Guo <shawn....@linaro.org> > > Change clk_register_mux to use kzalloc, just like what all other basic > clk registration functions do. > > Signed-off-by: Shawn Guo <shawn....@linaro.org> > Signed-off-by: Mike Turquette <mturque...@linaro.org> > Cc: Arnd Bergman <arnd.bergm...@linaro.org> > Cc: Olof Johansson <o...@lixom.net> > Cc: Russell King <li...@arm.linux.org.uk> > Cc: Sascha Hauer <s.ha...@pengutronix.de> > Cc: Richard Zhao <richard.z...@linaro.org> > Cc: Saravana Kannan <skan...@codeaurora.org> > Cc: Mark Brown <broo...@opensource.wolfsonmicro.com> > Cc: Andrew Lunn <and...@lunn.ch> > Cc: Rajendra Nayak <rna...@ti.com> > Cc: Viresh Kumar <viresh.ku...@st.com> > --- > drivers/clk/clk-mux.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c > index c71ad1f..50e0595 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__);
Reviewed-by: Viresh Kumar <viresh.ku...@st.com> -- viresh _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev