diff options
| author | Vineeth Vijayan <vneethv@linux.ibm.com> | 2021-03-30 20:46:57 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2021-04-07 15:24:56 +0200 |
| commit | 7dd8ed09430465d137330e0810a2a90e06770898 (patch) | |
| tree | fcce513002bfc419fc70099704b7fb59bcbd850a /drivers/s390/char/sclp_tty.c | |
| parent | 3784231b1e091857bd129fd9658a8b3cedbdcd58 (diff) | |
| download | cachepc-linux-7dd8ed09430465d137330e0810a2a90e06770898.tar.gz cachepc-linux-7dd8ed09430465d137330e0810a2a90e06770898.zip | |
s390: use DEFINE_SPINLOCK for initialization
For static initialization of spinlock_t variable, use DEFINE_SPINLOCK
instead of explicitly calling spin_lock_init().
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char/sclp_tty.c')
| -rw-r--r-- | drivers/s390/char/sclp_tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/char/sclp_tty.c b/drivers/s390/char/sclp_tty.c index 4af8084df169..cf73fc3fd0f9 100644 --- a/drivers/s390/char/sclp_tty.c +++ b/drivers/s390/char/sclp_tty.c @@ -35,7 +35,7 @@ */ /* Lock to guard over changes to global variables. */ -static spinlock_t sclp_tty_lock; +static DEFINE_SPINLOCK(sclp_tty_lock); /* List of free pages that can be used for console output buffering. */ static struct list_head sclp_tty_pages; /* List of full struct sclp_buffer structures ready for output. */ @@ -526,7 +526,6 @@ sclp_tty_init(void) list_add_tail((struct list_head *) page, &sclp_tty_pages); } INIT_LIST_HEAD(&sclp_tty_outqueue); - spin_lock_init(&sclp_tty_lock); timer_setup(&sclp_tty_timer, sclp_tty_timeout, 0); sclp_ttybuf = NULL; sclp_tty_buffer_count = 0; |
