fpga: Use DEFINE_SPINLOCK() for spinlock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 28 Dec 2020 13:51:35 +0000 (21:51 +0800)
committerMoritz Fischer <mdf@kernel.org>
Sun, 10 Jan 2021 18:57:13 +0000 (10:57 -0800)
commitf5187329d07247393413b7a4bc32e16b35849e0f
tree9dee33357fd90070f533fbed7c32232aa97aabf9
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
fpga: Use DEFINE_SPINLOCK() for spinlock

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

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/fpga-bridge.c