From patchwork Fri Sep 22 12:07:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965887 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 02EDD600C5 for ; Fri, 22 Sep 2017 12:07:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5ACC29172 for ; Fri, 22 Sep 2017 12:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA89029864; Fri, 22 Sep 2017 12:07:38 +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 8207529172 for ; Fri, 22 Sep 2017 12:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752409AbdIVMHh (ORCPT ); Fri, 22 Sep 2017 08:07:37 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34471 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbdIVMHh (ORCPT ); Fri, 22 Sep 2017 08:07:37 -0400 Received: by mail-pf0-f194.google.com with SMTP id g65so388464pfe.1 for ; Fri, 22 Sep 2017 05:07: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=CwwSQU9ObWn7mHQSbUcFrcXULNirCrXA7zdtmAyk7Yw=; b=lGzROownBDTDO+xRdlsX9yDblalkRQ4Tg0rO41pm8UMjf1wAb/bZfSHkEFHYLYVxhr pxwecVPDAU90f/QiJogw+/83tLZs3kHHt91SA9mx/9wh0r2GmDIRBefwHYDvPmieIFES lwV56bACD6h2Q52qOQz/NI/WIJA0Hdl28GyB8hGn2M92uljIRZ+j6qgd+283iYqe4r36 23Juxm89IikEA8exqtemfA8uY+I9zAo1uexsb/F3tJ5NmcwkK+CdoAky4P2S480+C6RZ znH+39R4FY2J4ajBh9K5QxuZOmidJZZDCd+VVB2m9yNYwyXKVeEdwp3J+sYPwBHVVlUe QdOg== 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=CwwSQU9ObWn7mHQSbUcFrcXULNirCrXA7zdtmAyk7Yw=; b=ZKL10DN6OLFeugqZuH+NDeryvFRpMdMH3wE+FiGWM0J0wb+M0rlZOZgkRRPgCUxGsL B+s2Kr+HyDjew0tYDHeyb15TXDVAS+I0oEQIFtWtO/QnlL/cbbgREywda2NKhRMogvhY 2JmPAXtHQPf1s4A+GWKM8l4lW0jKZfcStKE6oc3vgGKvAEAWMTB6dUeGQKNBJ7f+ynb6 /yv/Bgnr9XcRod+x+U6/kp4qlqzjvh0V4gY/9vOlRT+W+COqU3vPBEeLnRz7/HbXYrMe 3keh3eAubcFUhbDx4K7MS02BV+WbC1+SgQhAJHQbJYe2s0NciZunvKnaSzGF5P3H+Cvt rLiQ== X-Gm-Message-State: AHPjjUha4uIG7U+9EjSW1iJEppYYihz9aJ/XS2Cq+mZ6Monc+B+k/Y/M mEfrw+9apBO2u2pcQk/Q26c= X-Google-Smtp-Source: AOwi7QBWzY1WX//PkNXAO5sY8Kgx4kjQjdm2+unneRMrXsZwVSO7QK7RhGylzIMPyBSfn7gXSJ2q3w== X-Received: by 10.101.82.9 with SMTP id o9mr9325207pgp.42.1506082056881; Fri, 22 Sep 2017 05:07:36 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f10sm7586403pgr.67.2017.09.22.05.07.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 05:07:35 -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 1/4] mmc-host: wbsd: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:37:23 +0530 Message-Id: <1506082046-6878-2-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/wbsd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index 546aaf8..499852d 100644 --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c @@ -1224,9 +1224,8 @@ static int wbsd_alloc_mmc(struct device *dev) /* * Set up timers */ - init_timer(&host->ignore_timer); - host->ignore_timer.data = (unsigned long)host; - host->ignore_timer.function = wbsd_reset_ignore; + setup_timer(&host->ignore_timer, wbsd_reset_ignore, + (unsigned long)host); /* * Maximum number of segments. Worst case is one sector per segment