From patchwork Fri Sep 22 09:51:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965725 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 CC3C7600C5 for ; Fri, 22 Sep 2017 09:52:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB37D2982C for ; Fri, 22 Sep 2017 09:52:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF7AE29845; Fri, 22 Sep 2017 09:52:59 +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 7B4392982C for ; Fri, 22 Sep 2017 09:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbdIVJw5 (ORCPT ); Fri, 22 Sep 2017 05:52:57 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37928 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022AbdIVJw4 (ORCPT ); Fri, 22 Sep 2017 05:52:56 -0400 Received: by mail-pg0-f65.google.com with SMTP id m30so360341pgn.5 for ; Fri, 22 Sep 2017 02:52:56 -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=3RqxNGTx2TAJwmqlzFsWA7v/p+U1EhTm1A3X0C17314=; b=RHZilZ9qkEwyoct/rBL213Zv+nAWyGX7q0R5qD2gOCRVBhGQbdDnlVfpKHnZGxOXip W2LBUJj9eqLSbWktdbqVxOi7VP4ea9Y+swKiMGewuNClXzEcabFRn70V5rs1FJkEXPu+ Z9JYI2jQq1mljk+bobfdPN6i0Z82mux/p+e+70SCAoLNDkiz4qAuOHt4QAhDbOh1bL9+ gc4mAy6iTwC9G1WeiD716iEM13vJAeDbPr2i9Pfle2mUuBNhQNpAa3M4YGwNa7JUXDfk l3c3tqw0F9Yc35DnSdL8q7t5AZf0bmtmRPRPpJacoHbJ6yaTWDBsNkr6rXEjyag7HVRH ZEUw== 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=3RqxNGTx2TAJwmqlzFsWA7v/p+U1EhTm1A3X0C17314=; b=BOhpRxbqJRhZF2rD/vBRGioiMLxMblDq+NqnTYHV4+Mkfx5lBVZF121u1WRygealYL ptADMUFcZOFyAmrfPkd5Q0AYWQdp01IY4X4iFgZccCxcskr0cWE6PBFyiz7VXtd2gnAc QfhxfCC1PkcWZvLiAkSOcVc9O82RQle+xBBNdujQ/6CKWxIb2MOSe+QBw4OZqSxHXG5f 7JSB0m1r+jGbhpDCKtVYP2Cq1Gus0RViV+uBT5wqFUXKQA0vm4nTtw+zpMWhhmwQuDAk jPqUKZLONZRQtGAIVQi+l3GkoZyvFTdEk7KLYoapz/w6kqF2A+H7WbLTG18RysRf/vx/ iSPg== X-Gm-Message-State: AHPjjUgGeeg4kCwIgsL7ooA59/ProRlLqH10joDzg93l12Ra+UVHqMYK gglMVaft+NPYAJ9sg35GcHK25a05 X-Google-Smtp-Source: AOwi7QC7fnQ4Op4tLB30avc6YZwjOWFPGiYxhs3AWMKFXUgx+gL6fpzQZiKu8bBWSW/OBH93qLItKw== X-Received: by 10.84.240.137 with SMTP id z9mr8484327plk.114.1506073975502; Fri, 22 Sep 2017 02:52:55 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.52.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:52:53 -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 13/13] scsi: bfa: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:45 +0530 Message-Id: <1506073905-12985-14-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/bfa/bfad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c index 5caf5f3..d10826a 100644 --- a/drivers/scsi/bfa/bfad.c +++ b/drivers/scsi/bfa/bfad.c @@ -719,9 +719,7 @@ bfad_bfa_tmo(unsigned long data) void bfad_init_timer(struct bfad_s *bfad) { - init_timer(&bfad->hal_tmo); - bfad->hal_tmo.function = bfad_bfa_tmo; - bfad->hal_tmo.data = (unsigned long)bfad; + setup_timer(&bfad->hal_tmo, bfad_bfa_tmo, (unsigned long)bfad); mod_timer(&bfad->hal_tmo, jiffies + msecs_to_jiffies(BFA_TIMER_FREQ));