提交 08442ce9 编写于 作者: M Mark Brown 提交者: Mike Turquette

clk: wm831x: Initialise wm831x pointer on init

Otherwise any attempt to interact with the hardware will crash. This is
what happens when drivers get written blind.
Signed-off-by: NMark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 0044cbcd
......@@ -360,6 +360,8 @@ static int wm831x_clk_probe(struct platform_device *pdev)
if (!clkdata)
return -ENOMEM;
clkdata->wm831x = wm831x;
/* XTAL_ENA can only be set via OTP/InstantConfig so just read once */
ret = wm831x_reg_read(wm831x, WM831X_CLOCK_CONTROL_2);
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册