mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
rtc: at91sam9: Fix missing spin_lock_init()
The driver allocates the spinlock but not initialize it. Use spin_lock_init() on it to initialize it correctly. This is detected by Coccinelle semantic patch. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
ae036af896
commit
b7b17633d8
1 changed files with 1 additions and 0 deletions
|
|
@ -375,6 +375,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
|
|||
if (!rtc)
|
||||
return -ENOMEM;
|
||||
|
||||
spin_lock_init(&rtc->lock);
|
||||
rtc->irq = irq;
|
||||
|
||||
/* platform setup code should have handled this; sigh */
|
||||
|
|
|
|||
Loading…
Reference in a new issue