From patchwork Fri Sep 22 11:56:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965867 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 63EEA60381 for ; Fri, 22 Sep 2017 11:56:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A17229871 for ; Fri, 22 Sep 2017 11:56:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EFE029885; Fri, 22 Sep 2017 11:56: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=-0.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS,RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=no 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 07A6929871 for ; Fri, 22 Sep 2017 11:56:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbdIVL4K (ORCPT ); Fri, 22 Sep 2017 07:56:10 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36616 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbdIVL4K (ORCPT ); Fri, 22 Sep 2017 07:56:10 -0400 Received: by mail-pg0-f67.google.com with SMTP id d8so508538pgt.3 for ; Fri, 22 Sep 2017 04:56:10 -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=E1gTNrTe2E4ACCx7h7UpMPb6rKh5H6zRJvOH+bwy8Oc=; b=M55Zac3fsH53Kf+Nu1H8eJBYllT+qMq6I/lskTZvIZtqTMjrND8SPVhyhiMK8JbMkA PaGzdwWrcKeFSpoSbDkVoQKwkgFtYMFXvbP1N11pNmG+mVTaMC9bIm/zJBJdC9Ba+LMq oz84q/QTzc9zsIDlNOaDiacnyHcYd8u9QuWzV7RTfHU9h838pxjIFSo/X1KO9m5qBLlb sZYAroKYBuvIkVin0WCfgajuzyny3m9osdsLOcCz6yCxMwtm5hJ0/TB0h4NhW6dlk6+u SrcUEml/K+yoYCEX2lppJp+FoW+yL8T7RCRKXogqWo8eJHDm3E/Uq3sFkak2SftsS9P9 Qf6Q== 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=E1gTNrTe2E4ACCx7h7UpMPb6rKh5H6zRJvOH+bwy8Oc=; b=FrJFmy9tsuscf9aPcotKGEGvRfOWmr0N7+LLS7d8AUKl4wOOidIA6/xdud1QnfuYyE Q00HCMloWrHjTfdkpJcscbMJ8+KWdU+p2LxNPr5VLUOQfPVgbcx3c07dec/iZ1F4ZVQH CR/RXHT1OpuJFzRFrHVGYXYaJwwdoTNO5P9vOra511gJV+2sxe+aum2k6b749ZH6ewDb wmWcLbD8DYJgbGYvbsjSSKXvj7Zzc16XCh0+nCocvbN45/C0gio/iEXrSPtisUaZPSAQ +nCf6A7clGFpIiCu5rh68KOMYb1qNqcvyIzX08ld7Uh63kvg2bvA/3AHSANrvLmxOz7i VNfA== X-Gm-Message-State: AHPjjUioKGgk1QSJIWuydBhCbqXJVLiEEjBT5WDxXyx/YJ358tEVq5G3 umgr16NbGsTfYtvlnNnH0TM= X-Google-Smtp-Source: AOwi7QAcJVt3ufeekMVbIx3BWMgBmSroxvKBtk2m0GBjTGvD1Ak7ErN6BPcV0URZvI/gH4yLagFAyg== X-Received: by 10.84.131.67 with SMTP id 61mr8867872pld.418.1506081369797; Fri, 22 Sep 2017 04:56:09 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id w82sm7307181pfa.69.2017.09.22.04.56.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 04:56:08 -0700 (PDT) From: Allen Pais To: ysato@users.sourceforge.jp Cc: dalias@libc.org, linux-sh@vger.kernel.org, Allen Pais Subject: [PATCH 2/2] sh: pci: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:26:00 +0530 Message-Id: <1506081360-6555-2-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506081360-6555-1-git-send-email-allen.lkml@gmail.com> References: <1506081360-6555-1-git-send-email-allen.lkml@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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 --- arch/sh/drivers/pci/common.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/sh/drivers/pci/common.c b/arch/sh/drivers/pci/common.c index dbf1381..5f4b3a8 100644 --- a/arch/sh/drivers/pci/common.c +++ b/arch/sh/drivers/pci/common.c @@ -105,15 +105,13 @@ static void pcibios_enable_serr(unsigned long __data) void pcibios_enable_timers(struct pci_channel *hose) { if (hose->err_irq) { - init_timer(&hose->err_timer); - hose->err_timer.data = (unsigned long)hose; - hose->err_timer.function = pcibios_enable_err; + setup_timer(&hose->err_timer, pcibios_enable_err, + (unsigned long)hose); } if (hose->serr_irq) { - init_timer(&hose->serr_timer); - hose->serr_timer.data = (unsigned long)hose; - hose->serr_timer.function = pcibios_enable_serr; + setup_timer(&hose->serr_timer, pcibios_enable_serr, + (unsigned long)hose); } }