diff options
| author | Axel Lin <[email protected]> | 2016-09-10 01:55:49 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2016-10-21 07:10:11 +0000 |
| commit | c699995663b40d61afcc14ca27f0106f13151772 (patch) | |
| tree | 329c9d4e81f6383f7c671cd3027a166f6fee988c /drivers/pwm/pwm-meson.c | |
| parent | Linux 4.9-rc1 (diff) | |
| download | kernel-c699995663b40d61afcc14ca27f0106f13151772.tar.gz kernel-c699995663b40d61afcc14ca27f0106f13151772.zip | |
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]>
Diffstat (limited to 'drivers/pwm/pwm-meson.c')
| -rw-r--r-- | drivers/pwm/pwm-meson.c | 1 |
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; |
