diff options
author | Jose Abreu <[email protected]> | 2016-12-12 11:08:55 +0000 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2017-01-09 16:06:40 -0800 |
commit | 6205406cf6f282d622f31de25036e6d1ab3a2ff5 (patch) | |
tree | 12ae0b0b74b658fc0de309f477ca30f9a236a032 | |
parent | 2df2b82b7ec2a10f9b4d455cd33659c490990f02 (diff) |
clk/axs10x: Clear init field in driver probe
Init field must be cleared in driver probe as this structure is not
dinamically allocated. If not, wrong flags can be passed to core.
Signed-off-by: Jose Abreu <[email protected]>
Cc: Carlos Palminha <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: 923587aafc2c ("clk/axs10x: Add I2S PLL clock driver")
Signed-off-by: Michael Turquette <[email protected]>
Link: lkml.kernel.org/r/040cc9afdfa0e95ce7a01c406ff427ef7dc0c0fd.1481540717.git.joabreu@synopsys.com
-rw-r--r-- | drivers/clk/axs10x/i2s_pll_clock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/axs10x/i2s_pll_clock.c b/drivers/clk/axs10x/i2s_pll_clock.c index 411310d29581..02d3bcd6216c 100644 --- a/drivers/clk/axs10x/i2s_pll_clock.c +++ b/drivers/clk/axs10x/i2s_pll_clock.c @@ -182,6 +182,7 @@ static int i2s_pll_clk_probe(struct platform_device *pdev) if (IS_ERR(pll_clk->base)) return PTR_ERR(pll_clk->base); + memset(&init, 0, sizeof(init)); clk_name = node->name; init.name = clk_name; init.ops = &i2s_pll_ops; |