mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
pwm: meson: Add missing spin_lock_init()
The driver uses the spin_lock but does not initialize it. Fix it. Signed-off-by: Axel Lin <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
1001354ca3
commit
c699995663
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue