From patchwork Fri Sep 22 09:51:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen Pais X-Patchwork-Id: 9965713 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 E2901600C5 for ; Fri, 22 Sep 2017 09:52:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDDA22983C for ; Fri, 22 Sep 2017 09:52:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D12BF29843; Fri, 22 Sep 2017 09:52:33 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET, 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 76A392983C for ; Fri, 22 Sep 2017 09:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128AbdIVJwc (ORCPT ); Fri, 22 Sep 2017 05:52:32 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38873 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752073AbdIVJwc (ORCPT ); Fri, 22 Sep 2017 05:52:32 -0400 Received: by mail-pg0-f66.google.com with SMTP id m30so359910pgn.5 for ; Fri, 22 Sep 2017 02:52:32 -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=URFAfrPd0i3W1eqsrdADZcnyPSp9dSX+3LrBBAsjLCE=; b=fVjCUkXFHlaWD5wkNXj16XQP+6NbaThqfk5nNtLM1G1cbgFHjLfwDp1ORRqDspCJz8 brW3gRkLl2jSww/K9a+V71dSgi+4r6LvVr/RnIvXiVPrNabbYFOssCnmaKXutX+tp3K1 eStXAiRkx3UQ13F9ZuNwIiV0JiOLf8iCrI0fg/7HQeLf08/nG/PT7vl/1zT3tBd+x38p Z5iYvOGP+llFU8GmZBdNvoMyE2GlFvxllHG+m60NKRYV8QTJZyxl9vq0m3LkZtraboDz 0HOtmYjEZfdTTaV2+gc8nvHJJlHKt8tBcWuQnDu5R33E8NPPqWTcPh8+z93zBatSmxND fDQg== 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=URFAfrPd0i3W1eqsrdADZcnyPSp9dSX+3LrBBAsjLCE=; b=NgxGIkc2QCwxWbLEaFLCZ1mhHpLwFpSd4iQjGzwFMZcvgfeChFdGRW+eGdNbwLJ4X7 fvwmy0zjyzj1GOtEzy2lZ3YvosYTKzR6h1Tv/OYY3YUs9aqpUz2RPw45Z8s/6xtKXtBx JdPhGiWBCkBjw+7l+Lg3vvSHsxsrDyvHr05Ac4Vv+xu2lnAn6J0gb4bfHmdX4cUC1W0w fFcOY2qmlIgedLre3DEVc5hAQbQt9x+7Fm+rSsQ/7g99OMNHH20xyrlFJ9lkwdAK34w6 zs9dFeMhpGS2rIa6rdsGaxfIpfuEzl8egecc2rd0ElSHjBOHjuqnaf7Zs7JSE9G4OIPg tdOA== X-Gm-Message-State: AHPjjUjzhq9LhjVDZYPpuZ2vkGqoqjTdA+sXnlmqtuLVsL+8yWgUxhjU PWbrU8e79TzR/qDg80qX8U4bXOl9 X-Google-Smtp-Source: AOwi7QCM434VQVOQ8HkFVB4JlWIneIBo6tvQh5gtYjKhKdjHVga3g5Qf6OBATZzGVp8yMD7dsj5Ccw== X-Received: by 10.99.99.197 with SMTP id x188mr8513535pgb.298.1506073951528; Fri, 22 Sep 2017 02:52:31 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:52:30 -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 08/13] scsi: ncr53c8xx: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:40 +0530 Message-Id: <1506073905-12985-9-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/ncr53c8xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index 5b93ed8..017216f 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c @@ -8357,9 +8357,7 @@ struct Scsi_Host * __init ncr_attach(struct scsi_host_template *tpnt, if (!np->scripth0) goto attach_error; - init_timer(&np->timer); - np->timer.data = (unsigned long) np; - np->timer.function = ncr53c8xx_timeout; + setup_timer(&np->timer, ncr53c8xx_timeout, (unsigned long)np); /* Try to map the controller chip to virtual and physical memory. */