]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Use DEFINE_SPINLOCK() for spinlock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 28 Dec 2020 13:51:12 +0000 (21:51 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 27 Jan 2021 11:41:11 +0000 (12:41 +0100)
commitbaf42847770dc3f6e858a6a4c4fc529f6d4d4fe7
tree2c88134ca0a3d1d52ee05800c5e24d0b556fec29
parentd227ded3d1fec016ccaf6f23406cf288a41638df
iommu/amd: 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>
Link: https://lore.kernel.org/r/20201228135112.28621-1-zhengyongjun3@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu_v2.c