dma: idxd: use DEFINE_MUTEX() for mutex lock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 24 Dec 2020 13:22:54 +0000 (21:22 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 8 Jan 2021 08:27:19 +0000 (13:57 +0530)
commite2fcd6e427c2fae92b366b24759f95d77b6f7bc7
tree2009a7d65be1900de8124ddc0749688ce68718f2
parent33cb6d1ed311af2c1dfd107fa334cfb51113ef35
dma: idxd: use DEFINE_MUTEX() for mutex lock

mutex lock can be initialized automatically with DEFINE_MUTEX()
rather than explicitly calling mutex_init().

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20201224132254.30961-1-zhengyongjun3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c