clk: mediatek: Initialize clk_init_data
authorRicky Liang <jcliang@chromium.org>
Mon, 18 May 2015 14:00:26 +0000 (22:00 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 20 May 2015 01:40:48 +0000 (18:40 -0700)
commit95f589814c8af85fa673320bf319ffe8d721dd74
tree92385ff41328f0931cafb6c160babc6c6a459652
parentdf5338d9fe5d607cdbc68d8432cbfdc9a942a679
clk: mediatek: Initialize clk_init_data

The variable init (struct clk_init_data) is allocated on the stack.
We weren't initializing the .flags field, so it contains random junk,
which can cause all kinds of interesting issues when the flags are
parsed by clk_register.

Signed-off-by: Ricky Liang <jcliang@chromium.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mediatek/clk-gate.c
drivers/clk/mediatek/clk-pll.c