rtc: rtc-imxdi: add missing spin lock initialization

Submitted by Jan Luebbe on Oct. 17, 2012, 3:25 p.m.

Details

Message ID 1350487505-7789-1-git-send-email-jlu@pengutronix.de
State Superseded
Headers show

Commit Message

Jan Luebbe Oct. 17, 2012, 3:25 p.m.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 drivers/rtc/rtc-imxdi.c |    2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index b2fe920..85f19ad 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;