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)
commitd5f14dcf0016e8c86c424d1fd839b1e9ab000279
tree395e2dc0c48ddefc31d0b1a4095ab74e65e496f6
parent295135d32fde7fa11c983cc7b1b79c49556c14cf
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