From: Jan Luebbe Date: Thu, 25 Oct 2012 01:13:58 +0000 (+1100) Subject: drivers/rtc/rtc-imxdi.c: add missing spin lock initialization X-Git-Tag: next-20121025~2^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6e5c5aed1fdf6eb9953f9e2a10b7dcb27e9b78df;p=karo-tx-linux.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 Cc: Sascha Hauer Cc: Russell King Cc: Signed-off-by: Andrew Morton --- 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;