提交 c6999956 编写于 作者: A Axel Lin 提交者: Thierry Reding

pwm: meson: Add missing spin_lock_init()

The driver uses the spin_lock but does not initialize it. Fix it.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 1001354c
...@@ -474,6 +474,7 @@ static int meson_pwm_probe(struct platform_device *pdev) ...@@ -474,6 +474,7 @@ static int meson_pwm_probe(struct platform_device *pdev)
if (IS_ERR(meson->base)) if (IS_ERR(meson->base))
return PTR_ERR(meson->base); return PTR_ERR(meson->base);
spin_lock_init(&meson->lock);
meson->chip.dev = &pdev->dev; meson->chip.dev = &pdev->dev;
meson->chip.ops = &meson_pwm_ops; meson->chip.ops = &meson_pwm_ops;
meson->chip.base = -1; meson->chip.base = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册