OSDN Git Service

ocxl: use DEFINE_MUTEX() for mutex lock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 24 Dec 2020 13:24:46 +0000 (21:24 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 30 Jan 2021 00:39:21 +0000 (11:39 +1100)
commit52f6b0a90bcf573ba8a33e97544c7b6f292376a4
treebc2d04460396b006c579d48687c3111186c3bf3a
parent3db380570af7052620ace20c29e244938610ca71
 ocxl: 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: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201224132446.31286-1-zhengyongjun3@huawei.com
drivers/misc/ocxl/file.c