Thread (2 messages) 2 messages, 2 authors, 2016-09-05

[rtc-linux] [PATCH] rtc: asm9260: Fix missing spin_lock_init for priv->lock

From: Axel Lin <hidden>
Date: 2016-09-05 15:01:49
Subsystem: arm/alphascale architecture, real time clock (rtc) subsystem, the rest · Maintainers: Krzysztof Kozlowski, Alexandre Belloni, Linus Torvalds

Signed-off-by: Axel Lin <redacted>
---
 drivers/rtc/rtc-asm9260.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c
index 5219916..72a036f 100644
--- a/drivers/rtc/rtc-asm9260.c
+++ b/drivers/rtc/rtc-asm9260.c
@@ -269,6 +269,7 @@ static int asm9260_rtc_probe(struct platform_device *pdev)
 
 	priv->dev = &pdev->dev;
 	platform_set_drvdata(pdev, priv);
+	spin_lock_init(&priv->lock);
 
 	irq_alarm = platform_get_irq(pdev, 0);
 	if (irq_alarm < 0) {
-- 
2.7.4

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help