From patchwork Fri Sep 22 12:07:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965895 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 18BC3600C5 for ; Fri, 22 Sep 2017 12:07:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E97B229887 for ; Fri, 22 Sep 2017 12:07:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE54329889; Fri, 22 Sep 2017 12:07:49 +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 E0E0029887 for ; Fri, 22 Sep 2017 12:07:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752408AbdIVMHs (ORCPT ); Fri, 22 Sep 2017 08:07:48 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38690 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbdIVMHr (ORCPT ); Fri, 22 Sep 2017 08:07:47 -0400 Received: by mail-pg0-f67.google.com with SMTP id m30so521030pgn.5 for ; Fri, 22 Sep 2017 05:07:47 -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=cwx/NVhIgks9aTODC+StZ/cFhDouoiNyZFv83YIaN2g=; b=Ou1QgseKFxR3N7uJcBgjlI4+Bdu2no2YqPkpySJCLOmigPXW8/vqI5zGScAzMF0Bm7 8zN9m65f93SKd7F5PfcC0zqGWQtMfn8Y0Qx1L1gh2j8ZPO0yLZDjFKJi/g53PkgnZ07B 2BTROmNU2MS90nca4SYZV+pgk+6FZZWuJ5Lb1fcKIVPv4BTkz+chWhUvhRbA9vGW9xNN MaKhsgMURUNioQMjv84L7ZBqSu8PJTygR/uEOY5ESVq1lZOxCQMyZL2pXxzcT+N/CJXm TYSbFRM8RSwK9ajMowdjjvbsnrZO6HMtltCPIayGcSe01ZWGYvvMc4+lqqP/8eUhTmR9 HEhQ== 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=cwx/NVhIgks9aTODC+StZ/cFhDouoiNyZFv83YIaN2g=; b=dl4Fh3UhSHsDOZssX4QUlmAiwD8sF1+7vyl+zQ1JioGR8J9CmNvaGv+l2snnsWLD5L M66/N4XJ9+WW+PFaZBaJNMHQyJN2/sYtEe220P0s/QfDAfsAWGgOL3UYEnVNT2ZCJt0I g6qQec0qyz69n43sVcSz9/AV9MTVZjZ3lR5U3f3nmZ3Ub81rlQrO+RNK6IHLfjo67Pxl 3LlTonzGWDn6HBhjE7z1r2/oqijW/UHY24FTTBUgqxnXoqA+aGmxZIRKXWnXbSh+cw4e DiNbbkale7crCeJ6DIQnyVHmu1Gf32xWypvF9FYL4rSuueV6zJhX/sKvKMuhPEZP7uRV T5Yg== X-Gm-Message-State: AHPjjUiyNBNxd5eYKNH7+RAq6vRsflHhr8bkS7GjZ5Ngb75t4IOWm5vZ 48IOVFDzs8ekwxufMoGJPxo= X-Google-Smtp-Source: AOwi7QDms+qoZq85C37636XYCqgOfbH5YzY/TYQO4vNppuwaSc2D1uYts1fJ9Zge3KpFjufFNugRNQ== X-Received: by 10.99.6.140 with SMTP id 134mr8861292pgg.199.1506082067224; Fri, 22 Sep 2017 05:07:47 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f10sm7586403pgr.67.2017.09.22.05.07.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 05:07:46 -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 4/4] mmc-host: mxcmmc: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:37:26 +0530 Message-Id: <1506082046-6878-5-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/mxcmmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index 1d5418e..328484b 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1165,9 +1165,7 @@ static int mxcmci_probe(struct platform_device *pdev) goto out_free_dma; } - init_timer(&host->watchdog); - host->watchdog.function = &mxcmci_watchdog; - host->watchdog.data = (unsigned long)mmc; + setup_timer(&host->watchdog, &mxcmci_watchdog, (unsigned long)mmc); mmc_add_host(mmc);