linux_old1/drivers/clk/keystone
Ivan Khoronzhuk a65e0c6a7f clk: keystone: gate: fix clk_init_data initialization
The clk_init_data struct is allocated in the stack. All members of
this struct should be initialized before using otherwise it will
lead to unpredictable situation as it can contain garbage.

Ultimately the clk->flag field contains garbage. In my case it leads
that flag CLK_IGNORE_UNUSED is set for most of clocks. As result a
bunch of unused clocks cannot be disabled.

So initialize flags in this structure too.

Cc: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
2014-02-10 15:17:43 -05:00
..
Makefile clk: keystone: Build Keystone clock drivers 2013-10-07 18:16:37 -07:00
gate.c clk: keystone: gate: fix clk_init_data initialization 2014-02-10 15:17:43 -05:00
pll.c clk: keystone: use clkod register bits for postdiv 2013-12-10 11:08:20 -05:00