Commit d1fbab7e authored by Cai Huoqing's avatar Cai Huoqing Committed by Helge Deller
Browse files

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: default avatarCai Huoqing <caihuoqing@baidu.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent ecb6a16f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -352,12 +352,10 @@ static int __init pdt_initcall(void)
	if (pdt_type == PDT_NONE)
		return -ENODEV;

	kpdtd_task = kthread_create(pdt_mainloop, NULL, "kpdtd");
	kpdtd_task = kthread_run(pdt_mainloop, NULL, "kpdtd");
	if (IS_ERR(kpdtd_task))
		return PTR_ERR(kpdtd_task);

	wake_up_process(kpdtd_task);

	return 0;
}