diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2019-11-15 17:28:55 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-11-23 00:58:04 +0100 |
commit | cc819cf8d4760fac260e91dcf5c432abece3fcd2 (patch) | |
tree | cbf77f7eab9a326bc10b18cd5fcf1cf3b14488bc /drivers/clk/clk-fixed-rate.c | |
parent | Linux 5.4-rc1 (diff) | |
download | linux-cc819cf8d4760fac260e91dcf5c432abece3fcd2.tar.xz linux-cc819cf8d4760fac260e91dcf5c432abece3fcd2.zip |
clk: Zero init clk_init_data in helpers
The clk_init_data struct needs to be initialized to zero for the new
parent_map implementation to work correctly. Otherwise, the member which
is available first will get processed.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lkml.kernel.org/r/20191115162901.17456-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-fixed-rate.c')
-rw-r--r-- | drivers/clk/clk-fixed-rate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index a7e4aef7a376..2c4486c09040 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c @@ -58,7 +58,7 @@ struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev, { struct clk_fixed_rate *fixed; struct clk_hw *hw; - struct clk_init_data init; + struct clk_init_data init = {}; int ret; /* allocate fixed-rate clock */ |