From patchwork Thu Feb 4 15:18:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 12067527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BCBCC433E0 for ; Thu, 4 Feb 2021 15:20:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2F5364DDA for ; Thu, 4 Feb 2021 15:20:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2F5364DDA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=esmil.dk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kMmtdwa/f5Kiiqp47JP2ml4LLnqmBlSj8FOxLD74pWA=; b=Rpz2e9UFLtGilcTrXJCKTfHBt gH29BwBPhX3B5I9Z3vqUVAfrSdkTZAgNuPXF7QM3UUvszLveOFiJNVRj9oEM9ywvpu6/SHMdUIz93 e1IeDpSrb7+y4hCI+pu4UHSCtl504MeD8ILD7RPtolTWHNvMDpxbsz0Y2qmr4zCZIVVo1/v6ZFnDw vYoF2n44xwkCDIo6v23La7aPgSusukxHMHGBX3O5keOCFdaMTu/wqvh1+QswjjlyQWXWX43DomwHZ 5FWMwsA/askmcLMa6oiDcMllNNbEz3wqTm2D0CZ5y07msp7PBbhGd9ZEBHG+tVqXrVGzPxFLvGZx3 9MtSrYU0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPe-00088l-90; Thu, 04 Feb 2021 15:19:18 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPX-00086f-DM for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 15:19:12 +0000 Received: by mail-ej1-x632.google.com with SMTP id w1so5871098ejf.11 for ; Thu, 04 Feb 2021 07:19:10 -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=HmwiPW4FRVJe8bBya5y35sXmkmjkjfhlK35gtrHkZ1+Slk5spi5Y5yR0aWC8bn1m/g tvy4Gip4uX1oSmO81gxR/QznVS1g8BbjK8T5jtTphZzglFn6YWkjYGrtNbmRslgAseiw j45tAsRFCgWn+dEKan/ab/hW6awVn51uSE5TakMt4Nb+zMyXqo9M3c7P/nduoRA/OkDE 1Seb/effVX+niF64J8o6AiNSRUTxbPkt+VawNiWoW+3YfEAWg8jKB67r7aLRzD0sGqEu vw4sGtiA+EH0kfxCZ4gCX2F4+vs9FCd7ZT3tiC/922WLci6tSP/jKmZ6SQJze9e4EzSX UZ9Q== X-Gm-Message-State: AOAM531E9wQZjMaCUpOBLXg935KmZQuUUIXHiXkg6oYG+WiPwlhuz8rC YF5pKnGpgS1duOk3uRs7LUo= X-Google-Smtp-Source: ABdhPJwIDsLfmE8dMsrsBsSwNtKWXrU7ViHCPtARzRsAkMyD6j9j9GkqDwtVUArnOtFintcqgVRILw== 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) From: Emil Renner Berthing To: linux-mmc@vger.kernel.org, linux-omap@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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_101911_485627_FBBB3CE9 X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Emil Renner Berthing , Alex Dubov , Aaro Koskinen , linux-kernel@vger.kernel.org, Ulf Hansson , Jaehoon Chung , Ludovic Desroches , Ben Dooks , Manuel Lauss , Pierre Ossman , Bruce Chang , Harald Welte , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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)