]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc: at91sam9: Fix missing spin_lock_init()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 25 Jul 2016 07:05:11 +0000 (07:05 +0000)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 25 Jul 2016 22:09:18 +0000 (00:09 +0200)
commitb7b17633d866e79a192b6e616c644bb6f9301a3f
tree150cec9e35e2b41af0cf2c8404270ab73ee1784e
parentae036af8962da5856be2ee2b5543e65014cd608f
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 <weiyj.lk@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-at91sam9.c