[PATCH 9/9] staging: brcm80211: remove kernel_thread() for wl_event_handler.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jason Cooper <jason@xxxxxxxxxxxxxx>
---
 drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
index 5ee2c86..9a48dc8 100644
--- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
@@ -2773,10 +2773,13 @@ static void wl_deinit_priv_mem(struct wl_priv *wl)
 
 static int32 wl_create_event_handler(struct wl_priv *wl)
 {
+	struct task_struct *tsk;
+
 	sema_init(&wl->event_sync, 0);
 	init_completion(&wl->event_exit);
-	wl->event_pid = kernel_thread(wl_event_handler, wl, 0);
-	if (unlikely(wl->event_pid < 0)) {
+	tsk = kthread_run(wl_event_handler, wl, "wl_event_handler");
+	wl->event_pid = (long)get_pid(task_pid(tsk));
+	if (IS_ERR(tsk)) {
 		WL_ERR(("failed to create event thread\n"));
 		return -ENOMEM;
 	}
-- 
1.6.3.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux