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-Url: https://git.stricted.de/?a=commitdiff_plain;h=fee0de7791f967c2c5f0d43eb7b7261761b45e64;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 891cd6c61d0a..4eed51044c5d 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;