[PATCH 06/10] clk: Add support for a generic clock multiplexer

Uwe Kleine-König
2011-04-18T13:54:35Z

On Mon, Apr 18, 2011 at 03:33:53PM +0200, Sascha Hauer wrote:
> On Mon, Apr 18, 2011 at 03:15:27PM +0200, Uwe Kleine-K?nig wrote:
> > On Fri, Apr 15, 2011 at 09:08:11PM +0200, Sascha Hauer wrote:
> > > +
> > > +static int clk_mux_set_parent(struct clk *clk, struct clk *parent)
> > > +{
> > > + struct clk_mux *mux = to_clk_mux(clk);
> > > + u32 val;
> > > + int i;
> > > + unsigned long flags = 0;
> > = 0 isn't needed. (Or does gcc wail without it?)
>
> At least my gcc is not smart engough for this. flags may be used unitialized.
Then please use

unsigned long uninitialized_var(flags);

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |