summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorShixin Liu <liushixin2@huawei.com>2021-03-29 12:40:19 +0300
committerHeiko Carstens <hca@linux.ibm.com>2021-04-05 12:30:57 +0300
commit4e774d59e59956c45c02cfcc23f85a26be8d8bea (patch)
treed21e2afb7c20ede93baa3e49cf562fc11b126f0b /drivers/s390
parent1034c96c5e28b6a27d058a0e00c968695fcf3bf0 (diff)
downloadlinux-4e774d59e59956c45c02cfcc23f85a26be8d8bea.tar.xz
s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue
wait_queue_head_t can be initialized automatically with DECLARE_WAIT_QUEUE_HEAD() rather than explicitly calling init_waitqueue_head(). Signed-off-by: Shixin Liu <liushixin2@huawei.com> Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/css.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index f01ef6325039..a974943c27da 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -652,13 +652,12 @@ static void css_sch_todo(struct work_struct *work)
static struct idset *slow_subchannel_set;
static DEFINE_SPINLOCK(slow_subchannel_lock);
-static wait_queue_head_t css_eval_wq;
+static DECLARE_WAIT_QUEUE_HEAD(css_eval_wq);
static atomic_t css_eval_scheduled;
static int __init slow_subchannel_init(void)
{
atomic_set(&css_eval_scheduled, 0);
- init_waitqueue_head(&css_eval_wq);
slow_subchannel_set = idset_sch_new();
if (!slow_subchannel_set) {
CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n");