From patchwork Fri Sep 22 12:07:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965889 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 72FD4600C5 for ; Fri, 22 Sep 2017 12:07:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51A9329887 for ; Fri, 22 Sep 2017 12:07:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46B0729889; Fri, 22 Sep 2017 12:07:42 +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 E92B629887 for ; Fri, 22 Sep 2017 12:07:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752410AbdIVMHl (ORCPT ); Fri, 22 Sep 2017 08:07:41 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35766 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752408AbdIVMHk (ORCPT ); Fri, 22 Sep 2017 08:07:40 -0400 Received: by mail-pg0-f65.google.com with SMTP id j16so526899pga.2 for ; Fri, 22 Sep 2017 05:07:40 -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=a0sFsWNfBcDAkV4ie3SeCG5ahGcq2MmX/jJlQL/03vI=; b=A9rBI6gJlGpf0XABQqW5VirkBi/j2o1UEjHE81pCJOMCvISwpR0QQRLJKLEy0dQr1x IG+COElscqZgZZIfU9zw8Z9U+xZ1rblDgc0kpcKK7QgeUm77qhu5EFCiUijrqJXkHcHb 56AF+vHzwgeE/asUDKdusU7IWQezhjQi04F3PhIb+Uk4mZbUBOXkvYw3/QWT95kUHwme X5NQfqCAnzmfdMQR6ob3m0ZKAsXTpCgGKOGVYDLr8VpQvxE9UOGmpTcKHCOhqoJXUK8X h9ZKH8/+fK2OhYF5GtJYijBYp2x/DKGy0F6D/B+equ/1alx0ixYcG+xlYJVBu62WnTn5 vgdw== 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=a0sFsWNfBcDAkV4ie3SeCG5ahGcq2MmX/jJlQL/03vI=; b=JEXHnGugPUZDmPtyEut0IrEEWKum9AJqsdPgqRXnkH/nF5/ytYOoRKkBW50Q/Nlyyu 0KhI3jvbHw7WdmD9ehNaqwGQP2/qPDNc4+zzD/Cfpq+2WDekvmIrNTBWFFSGeDDUsh33 x+rTOBB1f9nPIL9dVMaXTu2oIDPyzHF+S9jIQUBo4P9nELO0iAQLH7eA7/4Jcwz/NZVy P8O6fmVSeqRoIfF0N5CRBy/uPyQ0wxLPkd2L38vAI3jmYW8OPTdhFFNj6TbX7aURx1iU mbX5cIAkiDZgWsyvjUqpcRsdjjSR6DurYVQo3huUXDNGus1LbkO85K5s9I5BYKwffyAt 92Tw== X-Gm-Message-State: AHPjjUiYJf6ItjuGkNx9ymnWDyDYQ+N+j6vP0WFXDv07S0RVAzACVXJW LuOpBSz4Os57zvkRF5y1xMc= X-Google-Smtp-Source: AOwi7QCmf+9wb2nsoFSbs8XAI8IrYfJTSpVlSK5D2fpIBtnsSKkMdyn3Wp7DGH20P+ams0hf89r1BA== X-Received: by 10.101.75.136 with SMTP id t8mr9060506pgq.282.1506082060261; Fri, 22 Sep 2017 05:07:40 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f10sm7586403pgr.67.2017.09.22.05.07.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 05:07:39 -0700 (PDT) From: Allen Pais To: ulf.hansson@linaro.org Cc: brucechang@via.com.tw, tony.olech@elandigitalsystems.com, pierre@ossman.eu, linux-mmc@vger.kernel.org, Allen Pais Subject: [PATCH 2/4] mmc-host: via: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:37:24 +0530 Message-Id: <1506082046-6878-3-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506082046-6878-1-git-send-email-allen.lkml@gmail.com> References: <1506082046-6878-1-git-send-email-allen.lkml@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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/mmc/host/via-sdmmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c index a838bf5..a8c97b6 100644 --- a/drivers/mmc/host/via-sdmmc.c +++ b/drivers/mmc/host/via-sdmmc.c @@ -1036,9 +1036,7 @@ static void via_init_mmc_host(struct via_crdr_mmc_host *host) u32 lenreg; u32 status; - init_timer(&host->timer); - host->timer.data = (unsigned long)host; - host->timer.function = via_sdc_timeout; + setup_timer(&host->timer, via_sdc_timeout, (unsigned long)host); spin_lock_init(&host->lock);