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)
commit106650f1e94527f15c0e99285b88ced84b47ab52
tree2c88134ca0a3d1d52ee05800c5e24d0b556fec29
parentf8993dc666f44e802c705d1053c4491981413f9e
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