mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Santosh Kumar Singh <kumar.san1093@gmail.com>
To: Cliff Whickman <cpw@sgi.com>, Robin Holt <robinmholt@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Santosh Kumar Singh <kumar.san1093@gmail.com>
Subject: [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of
Date: Sun,  2 Apr 2017 20:47:47 +0530	[thread overview]
Message-ID: <1491146267-3447-1-git-send-email-kumar.san1093@gmail.com> (raw)

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

             reply	other threads:[~2017-04-02 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-02 15:17 Santosh Kumar Singh [this message]
2017-04-06 19:10 ` Robin Holt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491146267-3447-1-git-send-email-kumar.san1093@gmail.com \
    --to=kumar.san1093@gmail.com \
    --cc=cpw@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robinmholt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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