From patchwork Fri Sep 22 09:51:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965699 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1C7D600C5 for ; Fri, 22 Sep 2017 09:52:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F07EC2982C for ; Fri, 22 Sep 2017 09:52:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4F8A29843; Fri, 22 Sep 2017 09:52:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B5172982C for ; Fri, 22 Sep 2017 09:52:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdIVJwB (ORCPT ); Fri, 22 Sep 2017 05:52:01 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33618 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbdIVJv7 (ORCPT ); Fri, 22 Sep 2017 05:51:59 -0400 Received: by mail-pg0-f68.google.com with SMTP id i130so372066pgc.0 for ; Fri, 22 Sep 2017 02:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pS5Zb2z5cfXKzfAl0EGwqF7K0ooY3NNLckvBwTcVGWc=; b=MXXTHWo8WZWmFKLlQCPeMhVJfhKEJPaMLAoOSo1Gw57/kUy6byJ1vgY8MvTUvlP79r ywsjfa9wk+v/bfprlwtzJavLTEPWs4eU8L3FgGnjarfFQs5swWA9p6JItG/zXvlCaiVr 0t+A+dRjxcDycxOXA+Jz0zsKmmqejAaav7o7rZs5sYRY3I3lUNJ6f8Ar1JFFIia0HwOi Tk6A9QJXiwTa07sVnGuutwzwhVJ+MtuP60f1K+c5AtWquJkzAX8oa8B3Y2xUpPHCQQ59 EcYrSuLLBoVGoGJ7KnmnRY/SxsEn274HUGh2Dl6izUMbmlpo/QBS07pvDTkxk0+T0LB5 p9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pS5Zb2z5cfXKzfAl0EGwqF7K0ooY3NNLckvBwTcVGWc=; b=T0/QD89D48cLxwfF6/m3pXbrrJZfTxfYzHPo9R+63nzXrRvGV/5LUrAX0ZsljNL12N C4t945k5x2f8m84C5w9D8fTBeFq1xEYbITzgGlBgJBS0adkQbWmloWTupW9muiSKnBMt 9Z6t1FG4VcDEot68kyGLwEyKT5Q83y82iJo6AfEjq5hK3SbXR6HLrbz/KmSkxfaQyEP9 4sDv+V3jzaw5Smoah3LBX0ZBHlyZpwlYZbzA21pHM60+cvWAt9nDYI7FuY92xyPtXjSO aK68xnkEOFfQHxo0L6XjYVhHJ9KtuRPrMBzKzrbaSNp4/bpWD3HuB57QINvCcHCUmGkr 1Mag== X-Gm-Message-State: AHPjjUicahgxgydtZXkXn87FrMZSNpXn07ErQ6U2Bx1eArYb31bxXSro aYnt0uLlIi1e3MCWi8PrTdqqElUv X-Google-Smtp-Source: AOwi7QCsqcnAba8d9PwuE0QEs1AXPAFMUF7/FoLGsaGVeCb3PRY/YJ/JazGXq2FjnVlxJg72y4gbJQ== X-Received: by 10.99.186.69 with SMTP id l5mr8704526pgu.160.1506073919026; Fri, 22 Sep 2017 02:51:59 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.51.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:51:57 -0700 (PDT) From: Allen Pais To: linux-scsi@vger.kernel.org Cc: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux@armlinux.org.uk, oliver@neukum.org, aliakc@web.de, lenehan@twibble.org, lduncan@suse.com, cleech@redhat.com, matthew@wil.cx, Allen Pais Subject: [PATCH 01/13] scsi: sym53c8xx: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:33 +0530 Message-Id: <1506073905-12985-2-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506073905-12985-1-git-send-email-allen.lkml@gmail.com> References: <1506073905-12985-1-git-send-email-allen.lkml@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index d32e3ba..285397d 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c @@ -1351,9 +1351,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, /* * Start the timer daemon */ - init_timer(&np->s.timer); - np->s.timer.data = (unsigned long) np; - np->s.timer.function = sym53c8xx_timer; + setup_timer(&np->s.timer, sym53c8xx_timer, (unsigned long)np); np->s.lasttime=0; sym_timer (np);