From patchwork Fri Sep 22 09:51:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965703 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 5AA90600C5 for ; Fri, 22 Sep 2017 09:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58FDE29640 for ; Fri, 22 Sep 2017 09:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C39A2982C; Fri, 22 Sep 2017 09:52:11 +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 C0CBC29640 for ; Fri, 22 Sep 2017 09:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdIVJwK (ORCPT ); Fri, 22 Sep 2017 05:52:10 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37518 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbdIVJwI (ORCPT ); Fri, 22 Sep 2017 05:52:08 -0400 Received: by mail-pf0-f195.google.com with SMTP id e69so262052pfg.4 for ; Fri, 22 Sep 2017 02:52:08 -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=pF6zsSOYsUhQCsNBuVeBrlzpOLFWxWN+8JJa5+XxOv8=; b=dkxGgmZPWiaH0oqOjJvUw/PAJqf+D8cu1qeTVrPPJMPGby2816cracRp4P0JMkkr/N rxhS2fVv47lAyh/VEP2f4043TPLtiLCkyYbF1C/LA8gMWURRVE4BfPuXhEui1TacnCI2 R1Z7ubVAlQO05T+rJHE7XCx6qBEb2ktsCoykjnnzXblRmOMEiCWsTdesu8Ozw8B2ZLTW 7c8eR6V3qLPLnvjUMgW86UfqYdh2ftmw7ng4IFZTK6NErx5Gu8NU8vbdJXT2kL3lqvOm 3pyvC0k9WThLizx5+SBmbPCK3ThtmFRkRoA7vuLhKhJ7ZVyfJnf5F6Y9wpgOJT71iIbq 1nXA== 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=pF6zsSOYsUhQCsNBuVeBrlzpOLFWxWN+8JJa5+XxOv8=; b=oY1aBsGpMzqt2PLNEKNS+etSdqA2/c+LT3qTSOCSd/omKtFrxf9th8M25eBms2Dgz8 LTWrW+/aHhhV/Dj+DTpPIj65V3u5uWSsP2xTCCmdithDpykjYsGY2ls8f4b2/i2WbSIn RNicwORtZalwyUWkAr5+FBICpCDPRvM3W0W0tVb/oAIwB0STmq7QSezYeAuS859bWcvH MonzK52LAphsqfxUdW8GGLyJmnkhCqyIgkrNpSjzsERVEhBWwbFxWpMHuqNAzHRabuwj R83TBuRfG4eBhQKKlAKUBVzbH3k01m98GZsCr+mFVtPaO1e7J5z6hXh68jgUFBXlO9tQ qK+w== X-Gm-Message-State: AHPjjUgAStUP/250HUd5da0tkxf8/F5VSCQ2iKaQRka93OMHcZv+c4Rv 3f6gZheN6SVFxnCqdy26OOx2hvAT X-Google-Smtp-Source: AOwi7QAkFpzh5Tc4WAe6GA/5LOkWDbSjgTrVUDy3lwymIEkEcSfETVv6CiWa0HBgQwGXRsgD+/tUrA== X-Received: by 10.99.100.131 with SMTP id y125mr8787385pgb.161.1506073927920; Fri, 22 Sep 2017 02:52:07 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.52.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:52:07 -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 03/13] scsi: esas2r: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:35 +0530 Message-Id: <1506073905-12985-4-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/esas2r/esas2r_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c index 81f226b..590db6d 100644 --- a/drivers/scsi/esas2r/esas2r_main.c +++ b/drivers/scsi/esas2r/esas2r_main.c @@ -1635,10 +1635,8 @@ static void esas2r_timer_callback(unsigned long context); void esas2r_kickoff_timer(struct esas2r_adapter *a) { - init_timer(&a->timer); - a->timer.function = esas2r_timer_callback; - a->timer.data = (unsigned long)a; + setup_timer(&a->timer, esas2r_timer_callback, (unsigned long)a); a->timer.expires = jiffies + msecs_to_jiffies(100);