summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-09-10 09:55:49 +0800
committerThierry Reding <thierry.reding@gmail.com>2016-10-21 09:10:11 +0200
commitc699995663b40d61afcc14ca27f0106f13151772 (patch)
tree329c9d4e81f6383f7c671cd3027a166f6fee988c /drivers/pwm
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadlinux-c699995663b40d61afcc14ca27f0106f13151772.tar.bz2
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 <axel.lin@ingics.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-meson.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
index 381871b2bb46..9d5bd7d5c610 100644
--- a/drivers/pwm/pwm-meson.c
+++ b/drivers/pwm/pwm-meson.c
@@ -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;