]> 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)
commit4b6805e8b53aed189c8c87cb85caba4fb61ad584
tree395e2dc0c48ddefc31d0b1a4095ab74e65e496f6
parentf48b96f4e78504459b13fe405d2ad1899c5550fb
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