linux/drivers/clk/st
Arnd Bergmann 9849fadfc0 clk: st: avoid uninitialized variable use
My previous patch fixed some warnings about printing a couple
of variables that are always uninitialized in quadfs_pll_fs660c32_set_rate(),
but I now got a warning that only shows up in some configurations (i.e.
without gcc -Os) about the params.ndiv being used uninitialized in the
error case:

drivers/clk/st/clkgen-fsyn.c: In function 'quadfs_pll_fs660c32_set_rate':
drivers/clk/st/clkgen-fsyn.c:584:75: warning: 'params.ndiv' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/clk/st/clkgen-fsyn.c:574:16: note: 'params.ndiv' was declared here

This changes the error handling so we bail for invalid arguments rather
than continuing with uninitialized data.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2016-01-29 17:20:08 -08:00
..
Makefile clk: st: STiH407: Support for Flexgen Clocks 2014-07-28 22:36:24 -07:00
clk-flexgen.c clk: st: fix handling result of of_property_count_strings 2015-10-01 15:21:50 -07:00
clkgen-fsyn.c clk: st: avoid uninitialized variable use 2016-01-29 17:20:08 -08:00
clkgen-mux.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
clkgen-pll.c drivers: clk: st: Correct the pll-type for A9 for stih418 2015-10-08 23:52:59 -07:00
clkgen.h drivers: clk: st: PLL rate change implementation for DVFS 2015-10-08 23:52:58 -07:00