From patchwork Thu Sep 21 11:43:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9963777 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 55EE46020C for ; Thu, 21 Sep 2017 11:44:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4130629350 for ; Thu, 21 Sep 2017 11:44:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35DC42946D; Thu, 21 Sep 2017 11:44:09 +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=unavailable 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 00BDF29350 for ; Thu, 21 Sep 2017 11:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbdIULn4 (ORCPT ); Thu, 21 Sep 2017 07:43:56 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34223 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbdIULnx (ORCPT ); Thu, 21 Sep 2017 07:43:53 -0400 Received: by mail-pg0-f65.google.com with SMTP id u18so3308609pgo.1; Thu, 21 Sep 2017 04:43:53 -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; bh=pS5Zb2z5cfXKzfAl0EGwqF7K0ooY3NNLckvBwTcVGWc=; b=vINZdXmiBolRtSIeT4Zwz6n+hls4DaeutBwkv4rbmNHowcFCkdqJ3b3uJhYVxa//Bn 7oioJbESEGPcwOmtevMSW5xToT5ONpv4r/j5Z647d0FEimmL2m2+iS2CDUaHJ4lY2Je7 gBZXYqlU0n18XtS3qj6aNn2PIeHFxvYm+/RAS969eTg2pExoNg18DUfSruChlA6OLcNk IXSV803Po/Iw4uLbbY6mEsL712XMVgdPCYYDRtWv55FxD8rk2fa0kt5TCLnBg9Y3n8DL 1MfmeJaWZVQmviFUz3yYYwRxVRaCuyU+XpFwOHLMQ5zt8oU013fZMfqM37JQvqJXA9LX 0YQw== 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; bh=pS5Zb2z5cfXKzfAl0EGwqF7K0ooY3NNLckvBwTcVGWc=; b=gi2Nd5mb8g2Re9keYcpu8hadmCNTBQ0HenFQ7esWf/XkjpbmP/khF5QMNAmU1gpXj1 8CUQ43+hPdLh+CRx6LO3knBqcUpqlb4tEgZ8sN9DqS2axHjYC/IyvXDticsygMiVr2bT Ihvf/t7iFJHGnS9n90AZz4VBJWf1nTDJz8Bh/gA6aAyjSGQcMFVKRpX+MNtxKoiLCGIP 2cJXcFkYvTkMO4BkDWRaKAh08PRe5pRRIQZe1icu4uCYL9u4q0VmLWBHHqdytja484/0 H7Emt7AWXG7LfIAIcJ7eam2YxQfg7+PdMbSTmfeOoNXmALiNbYv9BILN0U/QsqnpgQrs PH+w== X-Gm-Message-State: AHPjjUi0X9G/v1ClLPOUk3zCEPveYAjLJZ6K9BPZCDmgzOpMOq08DPeT tFkiT/Tf+GQgFII5zBgwrePGJv1c X-Google-Smtp-Source: AOwi7QDnrw7sKSkV+MS+/btvpYnKA06PcdpAA7oUfK4Z72NllKgXjqUThC+gpc+dBlj4kVkqtVhs7Q== X-Received: by 10.98.29.199 with SMTP id d190mr5507808pfd.74.1505994232694; Thu, 21 Sep 2017 04:43:52 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id z15sm2787317pgs.41.2017.09.21.04.43.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 04:43:51 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: matthew@wil.cx, linux-scsi@vger.kernel.org, Allen Pais Subject: [PATCH 1/1] drivers:scsi: use setup_timer Date: Thu, 21 Sep 2017 17:13:46 +0530 Message-Id: <1505994226-11265-1-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 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);