From: Shixin Liu Date: Mon, 29 Mar 2021 09:40:18 +0000 (+0800) Subject: s390/cio: use DEFINE_SPINLOCK() for spinlock X-Git-Tag: v5.13-rc1~132^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1034c96c5e28b6a27d058a0e00c968695fcf3bf0;p=thirdparty%2Fkernel%2Flinux.git s390/cio: use DEFINE_SPINLOCK() for spinlock static spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu Acked-by: Vineeth Vijayan Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 253ab4e7a4151..f01ef63250399 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work) } static struct idset *slow_subchannel_set; -static spinlock_t slow_subchannel_lock; +static DEFINE_SPINLOCK(slow_subchannel_lock); static wait_queue_head_t css_eval_wq; static atomic_t css_eval_scheduled; static int __init slow_subchannel_init(void) { - spin_lock_init(&slow_subchannel_lock); atomic_set(&css_eval_scheduled, 0); init_waitqueue_head(&css_eval_wq); slow_subchannel_set = idset_sch_new();