Commit 6205406c authored by Jose Abreu's avatar Jose Abreu Committed by Stephen Boyd

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: default avatarJose Abreu <joabreu@synopsys.com>
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Fixes: 923587aa ("clk/axs10x: Add I2S PLL clock driver")
Signed-off-by: default avatarMichael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/040cc9afdfa0e95ce7a01c406ff427ef7dc0c0fd.1481540717.git.joabreu@synopsys.com
parent 2df2b82b
...@@ -182,6 +182,7 @@ static int i2s_pll_clk_probe(struct platform_device *pdev) ...@@ -182,6 +182,7 @@ static int i2s_pll_clk_probe(struct platform_device *pdev)
if (IS_ERR(pll_clk->base)) if (IS_ERR(pll_clk->base))
return PTR_ERR(pll_clk->base); return PTR_ERR(pll_clk->base);
memset(&init, 0, sizeof(init));
clk_name = node->name; clk_name = node->name;
init.name = clk_name; init.name = clk_name;
init.ops = &i2s_pll_ops; init.ops = &i2s_pll_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment