parisc: Make use of the helper macro kthread_run()
Replace kthread_create/wake_up_process() with kthread_run() to simplify the code. Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
ecb6a16fb6
commit
d1fbab7e20
@ -352,12 +352,10 @@ static int __init pdt_initcall(void)
|
|||||||
if (pdt_type == PDT_NONE)
|
if (pdt_type == PDT_NONE)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
kpdtd_task = kthread_create(pdt_mainloop, NULL, "kpdtd");
|
kpdtd_task = kthread_run(pdt_mainloop, NULL, "kpdtd");
|
||||||
if (IS_ERR(kpdtd_task))
|
if (IS_ERR(kpdtd_task))
|
||||||
return PTR_ERR(kpdtd_task);
|
return PTR_ERR(kpdtd_task);
|
||||||
|
|
||||||
wake_up_process(kpdtd_task);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user