]> git.baikalelectronics.ru Git - kernel.git/commit
macintosh/via-pmu: Use DEFINE_SPINLOCK() for spinlock
authorYe Bin <yebin10@huawei.com>
Fri, 9 Apr 2021 09:51:45 +0000 (17:51 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 May 2022 09:37:43 +0000 (19:37 +1000)
commit4df12cc014d63d495412ef0a247e06d42dbb9020
tree395e2dc0c48ddefc31d0b1a4095ab74e65e496f6
parente9bc95126a18961fea6903c121c3a76286302667
macintosh/via-pmu: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210409095145.2294210-1-yebin10@huawei.com
drivers/macintosh/via-pmu.c