From: Axel Lin Date: Sat, 10 Sep 2016 01:55:49 +0000 (+0800) Subject: pwm: meson: Add missing spin_lock_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c699995663b40d61afcc14ca27f0106f13151772;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Neil Armstrong Signed-off-by: Thierry Reding --- 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;