Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1561625pxb; Thu, 4 Feb 2021 16:54:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRqcmoWvJ2fxfG6i4Ifucl15ICow3+eTjaabhPtmSKJhLNRTgvWqv8vgVnJXvoZKQuPrLX X-Received: by 2002:a17:906:5498:: with SMTP id r24mr1658250ejo.236.1612486455661; Thu, 04 Feb 2021 16:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612486455; cv=none; d=google.com; s=arc-20160816; b=peForhLhDiE9wC1uD/kLvA1LQxZSl21zX6udbtpR51mdQ1zN3IfoK7yDReeeiQtmfA kEipKqbowmobSfEvDVaklxqtPQQC7CgnFUHjaYCaCMhlMhMdsprD9wTw+lNbGY7wpwS2 Q/84R4cDMNeBcvNW0hW0mPFlg8YfEl4nxP4Mk6WzT3W/kiPzlDAU8z6b54T4tleV4afM h4KLpLrag7DeTFDe4pw8AxZ4V/w1RV6be/mJ6/hikwluqi6ilJLoDtXkOh8Ucw8+meBr AOLey+dDNbfacTfONdaqNO1BkxtnWHf7g0glZ6HxxuaXBVXUWFJBqVJyhy0W9MQpLVEm tQig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=4Ztwrmsm6gQAgLIEitmcEoJqCpEXF+Q5ciHAZ3tgDxw=; b=U4VhX9SfTaH1kimo2RBAP3EkrUxqHeQdEGku/Gs6DmpEQhXjOoVaa45pSyAeWuzP4c g5tASNhqT60a2XtCseWWtE4jD7GgMegKa32jUzfF4vGlJ9TtyffKtZHp0pHP1OrOC4tB /RCOsab5bB6NjBl3RgjMFXeNNiGNYGfRR7ziB/uzFXWBxB77iG7ZW9/P+eGk64YKrvdE 8e17lUMkuKo7UKYp2NmU7RNvqwRdjWk1Hk/htmH5OWkPKFz86IE3AdEXUgjjbmFTFaTp pBDin/ojGehBzzL6QGHq4m8XTaeQQxeUP23nCnMppqRJeMOD3Y6VGKeENLEdaqeE6POF b4qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mRQ5xqod; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz12si4126123ejb.550.2021.02.04.16.53.51; Thu, 04 Feb 2021 16:54:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mRQ5xqod; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237796AbhBDQHM (ORCPT + 99 others); Thu, 4 Feb 2021 11:07:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237218AbhBDPTv (ORCPT ); Thu, 4 Feb 2021 10:19:51 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA26C06178A; Thu, 4 Feb 2021 07:19:11 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id sa23so6008768ejb.0; Thu, 04 Feb 2021 07:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4Ztwrmsm6gQAgLIEitmcEoJqCpEXF+Q5ciHAZ3tgDxw=; b=mRQ5xqodp26jOz8LqunuNzwLU0YL/YgEsvxJ+8kuNGzv1/OpnND4QdHXcQNNDxcw9o bEZEdkHyFB5+BpvmAYasq/PQT18rC5R+kJzCWUJcOaldouyP1Mdei0NoNgBcXTDURzBm 2fcHnfwWQqTX66Bq7FOuhVJzdy2xul+opPhrhjhnTCfW57yGCfU8ivQfj1/X6xXlc3pr k0P4ci138hfwrSgoD+ZI7mx1cimo5n03oWhPKfsLDxlsiPQRXVqzHAemYdiSGWZH7n5I ZA1Bog1w1xuqeP+POAgwULTiLa/aCibA1g0GT4Xupxe4i1CrNZ8vDOcaKrjJUfhjBNNM PXjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4Ztwrmsm6gQAgLIEitmcEoJqCpEXF+Q5ciHAZ3tgDxw=; b=XkwFS3w6Llg4vntQkSFY2SvXWyqQyilYnA4RNfRNEqG0fCb6+b2y0e0KF1wYR/HD+2 22E3Uj9OejlbL0jpJjYvFs5Ct4+kvpdK46beWH6kh2Pd5h5qvMoa2HV/gu7+hI+G1CJ3 TW+VuhB5znY6cytcIWTL/m8WgjegggyE4OVTaL7EDLRmGDnSnEh9AP5tTo2uWpFDUXOq +ITov45AHmj5DFUe13S6d9olhYyYuZzis0Gv0iWjUr3grK7nBnPeDEW9utOEqngD8SoL NOVdAhdqXs9rMiTQy0Mue1u26gmP8LuIZtnuHK4QgCXzRuYM1ly17uJvZHNTnlghBnlz /4bw== X-Gm-Message-State: AOAM532gbS2DPn6UH/r9fI21fdUGYfuMfv78XdQRrNUBE7w2UlYMlVT2 IG7pEsKCozPDvOHrnppVh+fQ2uiGQoPVK/Lq X-Received: by 2002:a17:906:6dc6:: with SMTP id j6mr8261860ejt.88.1612451950067; Thu, 04 Feb 2021 07:19:10 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id a6sm2600001ejs.79.2021.02.04.07.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 07:19:09 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org Cc: Emil Renner Berthing , Ludovic Desroches , Ulf Hansson , Nicolas Ferre , Alexandre Belloni , Manuel Lauss , Jaehoon Chung , Aaro Koskinen , Ben Dooks , Alex Dubov , Bruce Chang , Harald Welte , Pierre Ossman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] mmc: dw_mmc: Use new tasklet API Date: Thu, 4 Feb 2021 16:18:41 +0100 Message-Id: <20210204151847.91353-4-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210204151847.91353-1-kernel@esmil.dk> References: <20210204151847.91353-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/dw_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a5244435556b..2f4de30f650b 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1952,9 +1952,9 @@ static bool dw_mci_clear_pending_data_complete(struct dw_mci *host) return true; } -static void dw_mci_tasklet_func(unsigned long priv) +static void dw_mci_tasklet_func(struct tasklet_struct *t) { - struct dw_mci *host = (struct dw_mci *)priv; + struct dw_mci *host = from_tasklet(host, t, tasklet); struct mmc_data *data; struct mmc_command *cmd; struct mmc_request *mrq; @@ -3308,7 +3308,7 @@ int dw_mci_probe(struct dw_mci *host) else host->fifo_reg = host->regs + DATA_240A_OFFSET; - tasklet_init(&host->tasklet, dw_mci_tasklet_func, (unsigned long)host); + tasklet_setup(&host->tasklet, dw_mci_tasklet_func); ret = devm_request_irq(host->dev, host->irq, dw_mci_interrupt, host->irq_flags, "dw-mci", host); if (ret) -- 2.30.0