From patchwork Wed Oct 24 10:20:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: rtc: rtc-imxdi: add missing spin lock initialization From: Jan Luebbe X-Patchwork-Id: 193726 Message-Id: <1351074042-8814-1-git-send-email-jlu@pengutronix.de> To: rtc-linux@googlegroups.com Cc: Jan Luebbe , Alessandro Zummo , Roland Stigge , Grant Likely , Sascha Hauer , Russell King , Andrew Morton Date: Wed, 24 Oct 2012 12:20:42 +0200 Signed-off-by: Jan Luebbe Cc: Alessandro Zummo Cc: Roland Stigge Cc: Grant Likely Cc: Sascha Hauer Cc: Russell King Cc: Andrew Morton Tested-by: Roland Stigge --- I've seen that Andrew Morton has taken three patches for rtc-imxdi from Roland Stigge into the -mm tree. So it might make sense for Andrew to take this as well. 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 96fb8cf..18a4f0d 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -393,6 +393,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;