Patchwork rtc: rtc-imxdi: add missing spin lock initialization

login
register
mail settings
Submitter Jan Luebbe
Date Oct. 17, 2012, 3:25 p.m.
Message ID <1350487505-7789-1-git-send-email-jlu@pengutronix.de>
Download mbox | patch
Permalink /patch/192076/
State New
Headers show

Comments

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

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;