All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] pwm: meson: Fix missing spin_lock_init
@ 2016-10-16  7:40 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2016-10-16  7:40 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Neil Armstrong, linux-pwm, Axel Lin

The driver uses the spin_lock but not initialize it, fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
---
Hi Thierry,
Seems you did'nt pick up this patch.
This patch was sent on
http://www.spinics.net/lists/linux-pwm/msg04847.html
 drivers/pwm/pwm-meson.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
index 381871b..9d5bd7d 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;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-16  7:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-16  7:40 [PATCH RESEND] pwm: meson: Fix missing spin_lock_init Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.