From: Jan Luebbe Date: Thu, 25 Oct 2012 20:38:11 +0000 (-0700) Subject: drivers/rtc/rtc-imxdi.c: add missing spin lock initialization X-Git-Tag: v3.7-rc3~24^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fee0de7791f967c2c5f0d43eb7b7261761b45e64;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drivers/rtc/rtc-imxdi.c: add missing spin lock initialization Signed-off-by: Jan Luebbe Cc: Alessandro Zummo Cc: Roland Stigge Cc: Grant Likely Tested-by: Roland Stigge Cc: Sascha Hauer Cc: Russell King Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;