mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of
@ 2017-04-02 15:17 Santosh Kumar Singh
  2017-04-06 19:10 ` Robin Holt
  0 siblings, 1 reply; 2+ messages in thread
From: Santosh Kumar Singh @ 2017-04-02 15:17 UTC (permalink / raw)
  To: Cliff Whickman, Robin Holt; +Cc: linux-kernel, Santosh Kumar Singh

Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: Santosh Kumar Singh <kumar.san1093@gmail.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 7f32712..9545157 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -931,11 +931,8 @@ struct device xpc_chan_dbg_subname = {
 		part->act_state = XPC_P_AS_INACTIVE;
 		XPC_SET_REASON(part, 0, 0);
 
-		init_timer(&part->disengage_timer);
-		part->disengage_timer.function =
-		    xpc_timeout_partition_disengage;
-		part->disengage_timer.data = (unsigned long)part;
-
+		setup_timer(&part->disengage_timer,
+				xpc_timeout_partition_disengage,
+					(unsigned long)part);
 		part->setup_state = XPC_P_SS_UNSET;
 		init_waitqueue_head(&part->teardown_wq);
 		atomic_set(&part->references, 0);
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of
  2017-04-02 15:17 [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of Santosh Kumar Singh
@ 2017-04-06 19:10 ` Robin Holt
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Holt @ 2017-04-06 19:10 UTC (permalink / raw)
  To: Santosh Kumar Singh; +Cc: Cliff Whickman, LKML

On Sun, Apr 2, 2017 at 10:17 AM, Santosh Kumar Singh
<kumar.san1093@gmail.com> wrote:
> Replace init_timer function with setup_timer reported by coccinelle
>
> Signed-off-by: Santosh Kumar Singh <kumar.san1093@gmail.com>
Acked-by:  Robin Holt <robinmholt@gmail.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-06 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02 15:17 [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of Santosh Kumar Singh
2017-04-06 19:10 ` Robin Holt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome