]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: serial: linflexuart: Use DEFINE_SPINLOCK() for spinlock
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 27 Aug 2019 11:46:14 +0000 (11:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:55 +0000 (12:43 +0200)
commit06e9b2fe7f1279bea649002cc40cce54a383f052
treeed8c1db762a40de1023606eb49bb4021e5c33e20
parent8428413b1d14fc880b805c98f571169e7f1ac369
tty: serial: linflexuart: Use DEFINE_SPINLOCK() for spinlock

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20190827114614.102037-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_linflexuart.c