Skip to content

Commit

Permalink
Staging: gdm72xx: gdm_usb: fix deprecated function kernel_thread
Browse files Browse the repository at this point in the history
This commit fixes deprecated function kernel_thread by replacing
it with kthread_run.

Signed-off-by: Adnan Ali <adnan.ali@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Adnan Ali authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 6ee19ae commit ff5e4a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/gdm72xx/gdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/usb.h>
#include <asm/byteorder.h>
#include <linux/kthread.h>

#include "gdm_usb.h"
#include "gdm_wimax.h"
Expand Down Expand Up @@ -775,7 +776,7 @@ static struct usb_driver gdm_usb_driver = {
static int __init usb_gdm_wimax_init(void)
{
#ifdef CONFIG_WIMAX_GDM72XX_K_MODE
kernel_thread(k_mode_thread, NULL, CLONE_KERNEL);
kthread_run(k_mode_thread, NULL, "WiMax_thread");
#endif /* CONFIG_WIMAX_GDM72XX_K_MODE */
return usb_register(&gdm_usb_driver);
}
Expand Down

0 comments on commit ff5e4a1

Please sign in to comment.