drivers/rtc/rtc-imxdi.c: add missing spin lock initialization
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Roland Stigge <stigge@antcom.de> Cc: Grant Likely <grant.likely@secretlab.ca> Tested-by: Roland Stigge <stigge@antcom.de> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Russell King <linux@arm.linux.org.uk> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6b187d0260
commit
fee0de7791
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user