From: Cai Huoqing Date: Thu, 21 Oct 2021 08:42:13 +0000 (+0800) Subject: parisc: Make use of the helper macro kthread_run() X-Git-Tag: v5.16-rc1~182^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1fbab7e203ec1119d6f254b3ec9eb10b8e7df8d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/pdt.c b/arch/parisc/kernel/pdt.c index fcc761b0e11b9..e391b175f5ece 100644 --- a/arch/parisc/kernel/pdt.c +++ b/arch/parisc/kernel/pdt.c @@ -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; }