Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448a71cc authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville
Browse files

mwifiex: use alloc_workqueue() function



It replaces deprecated create_workqueue().

Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e4744ec7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -880,7 +880,9 @@ mwifiex_add_card(void *card, struct semaphore *sem,
	adapter->cmd_wait_q.status = 0;
	adapter->scan_wait_q_woken = false;

	adapter->workqueue = create_workqueue("MWIFIEX_WORK_QUEUE");
	adapter->workqueue =
		alloc_workqueue("MWIFIEX_WORK_QUEUE",
				WQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 1);
	if (!adapter->workqueue)
		goto err_kmalloc;