memory: emif: Use DEFINE_SPINLOCK() for spinlock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 28 Dec 2020 13:50:56 +0000 (21:50 +0800)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sun, 3 Jan 2021 16:40:20 +0000 (17:40 +0100)
commitbd96a89ca3fe874c98fe057cccb087603d76e5d4
tree00682ee1ea37ac76e8d4b850750898f50a054ba7
parenta2d522ff0f5cc26915c4ccee9457fd4b4e1edc48
memory: emif: 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/20201228135056.28511-1-zhengyongjun3@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/emif.c