[PATCH 258/270] drivers/rtc/rtc-imxdi.c: add missing spin lock initialization
Herton Ronaldo Krzesinski
herton.krzesinski at canonical.com
Mon Nov 26 16:59:08 UTC 2012
3.5.7u1 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Luebbe <jlu at pengutronix.de>
commit fee0de7791f967c2c5f0d43eb7b7261761b45e64 upstream.
Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
Cc: Alessandro Zummo <a.zummo at towertech.it>
Cc: Roland Stigge <stigge at antcom.de>
Cc: Grant Likely <grant.likely at secretlab.ca>
Tested-by: Roland Stigge <stigge at antcom.de>
Cc: Sascha Hauer <kernel at pengutronix.de>
Cc: Russell King <linux at arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski at canonical.com>
---
drivers/rtc/rtc-imxdi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 891cd6c..4eed510 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -392,6 +392,8 @@ static int dryice_rtc_probe(struct platform_device *pdev)
if (imxdi->ioaddr == NULL)
return -ENOMEM;
+ spin_lock_init(&imxdi->irq_lock);
+
imxdi->irq = platform_get_irq(pdev, 0);
if (imxdi->irq < 0)
return imxdi->irq;
--
1.7.9.5
More information about the kernel-team
mailing list