From patchwork Fri Sep 22 09:51:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965737 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 D08A9600C5 for ; Fri, 22 Sep 2017 09:53:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D01F62982C for ; Fri, 22 Sep 2017 09:53:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4FC029845; Fri, 22 Sep 2017 09:53: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 8417F2982C for ; Fri, 22 Sep 2017 09:53:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752064AbdIVJxc (ORCPT ); Fri, 22 Sep 2017 05:53:32 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34189 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbdIVJwh (ORCPT ); Fri, 22 Sep 2017 05:52:37 -0400 Received: by mail-pf0-f195.google.com with SMTP id g65so270622pfe.1 for ; Fri, 22 Sep 2017 02:52:37 -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=ADZ95roFOwigUfc7AgC45snXpFtd9yeka9oMfaL+2Sc=; b=W9vIH8OSt3a/OJCUnbIr4ofoLbI0b6+ybTnCGVJJu/wl8Kt5UXO6nrQxh5zWWPJ3qb AlkurXMGDxWyQtQGbvbACnLMkPpDzaorbL6UP9IkTHZErYqrOzXgJnPMoM6gTCIF0GzY dfPtWDTU6SXTAIj27tOXYk+2YqqX6EVIdgjnR7cnETUtpyYc1uyMTLSo6wxjvMlhIq+p At42NjnTnly4xgKc+jQSG4k5rKOEUNyOjRUkBgHFP8kRbBRRwRAd2KZefbjwWf8LMsa0 5xscQY0yAxwQI5xIx8oYVNFZJEYI3Y1Cf1MjHF3pEoOQw7srMfX3uwowfZSnahfBDBHH txTw== 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=ADZ95roFOwigUfc7AgC45snXpFtd9yeka9oMfaL+2Sc=; b=OXTDXQk/s859M2Xi/uVsKyJtMu7XczBja8NXFiWA5MAdWySqZs8zwChl56k/HRWHvz TcwKlfvGe3z9P/h/Vu1QooWti6KW2hbFvkGbzUhGMwKJtKaqM2yLjVtmi39WNWcpRyYa bTZLEDK5USNhPjPv3zacFhPZZXZpukjtAhSC/imPot+1lH5j4LKueR4uqFBs90w5w1ZE j7e2nO9k4RxPUwbbsb3tnXYKXQ9aVnahg7DaNYJG+rpFHOZHiGOtFEubYDj59KTcsGt/ gga7QgouWVhjGOCTjVjh9k+FSiDx9fxrhEchfksPU5aX3jXleDpk89Ew6ERcuc/Unm4N Su1Q== X-Gm-Message-State: AHPjjUjQ4/3ti3lzUxwlOhDFBN2cyF4SRDPhEia2CGL1CeDGtg9yApdN AiWmTWAhFhlD5tdXbcyBlBhrQTxL X-Google-Smtp-Source: AOwi7QCwRsWhoJKAXycAh6PVx11UoKvwbdVkvuxxQUk/SLPGWMBu5sW6rzLW8PndYmrbVtG7NihJeQ== X-Received: by 10.159.245.146 with SMTP id a18mr8319947pls.26.1506073956470; Fri, 22 Sep 2017 02:52:36 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:52:35 -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 09/13] scsi: arm: fas216: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:41 +0530 Message-Id: <1506073905-12985-10-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/arm/fas216.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index 2438879..7304d5a 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c @@ -2849,9 +2849,7 @@ int fas216_init(struct Scsi_Host *host) info->rst_dev_status = -1; info->rst_bus_status = -1; init_waitqueue_head(&info->eh_wait); - init_timer(&info->eh_timer); - info->eh_timer.data = (unsigned long)info; - info->eh_timer.function = fas216_eh_timer; + setup_timer(&info->eh_timer, fas216_eh_timer, (unsigned long)info); spin_lock_init(&info->host_lock);