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