Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6999956 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

pwm: meson: Add missing spin_lock_init()



The driver uses the spin_lock but does not initialize it. Fix it.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 1001354c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -474,6 +474,7 @@ static int meson_pwm_probe(struct platform_device *pdev)
	if (IS_ERR(meson->base))
		return PTR_ERR(meson->base);

	spin_lock_init(&meson->lock);
	meson->chip.dev = &pdev->dev;
	meson->chip.ops = &meson_pwm_ops;
	meson->chip.base = -1;