]> git.baikalelectronics.ru Git - kernel.git/commit
mtip32xx: use DEFINE_SPINLOCK() for spinlock
authorShixin Liu <liushixin2@huawei.com>
Mon, 29 Mar 2021 09:53:48 +0000 (17:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Mar 2021 13:38:49 +0000 (07:38 -0600)
commitffda48f4720772f81cffd3157fb6e21d0ea50c0f
treed99281debbcc0f1ad41dfc887b070c9ba1b0ad98
parent55409ddb763b766b4b15e46b21086c3c52715d5f
mtip32xx: use DEFINE_SPINLOCK() for spinlock

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

Signed-off-by: Shixin Liu <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20210329095349.4170870-1-liushixin2@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c