Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1202077pxb; Thu, 4 Feb 2021 07:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2Q7aJEaSJS4uVjPAkm7lO4sI9UcZ8hy/LXyf6STLGrSLI2qL685MHuL7KaYuwxUPV7SAr X-Received: by 2002:aa7:c884:: with SMTP id p4mr8569401eds.212.1612452174017; Thu, 04 Feb 2021 07:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612452174; cv=none; d=google.com; s=arc-20160816; b=D82joLZOPuEhs2/GL0bdhMiYY1Vnz311nQqsvW87+BFdnoIjj3QYx+xbl6Nez0I0xt 5abKhMy/tDZF8dDAj4aj1Y968LSzMVl3GOfMEAe0+gwQVHa+TxAT/h5MMcCx1cHxbXTT Ku6zLs3HuN80NTnl9Hl2kIrenebXa98ux5bdskwmCyBFzxuXOuAkWVV2hzJTZDxTiaJx B8ouL4mfPpMK7P4fLLpINHA0/xSArLXdApI3n6vZshREmx/RWlagi1/17xige8y2MyDX ApV+PNyfu4cfs3TwMuRoBMBKVv+TKkFN17jzKKuf+KjmEdf8RqjxMsuEccAkTsg5K+QT 24sw== 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=M0B41tZ9BhfpLW130tpoMukMFanCubX5mUQuKs1xFi0=; b=RT2Duy6vWA0cOeuILpd0EdIIlHQ15t6/SUNC9esqrkhG4X3UoTZoL3MbDC6ROazLnJ 8X9bqv0i5vVkxpgEBop25jRikJj+xwbSKqW4H0+IquR92uT+waNwtK9up7bFe1m7oQZt A5gcSGdxKjVXSVJp5NtdQNJExtDleckMfH8m+M+1Pf8NNRy3si6BABNcMluyXOjz1h47 CGqU1X/nGJFIf9Y7xUqL7f4xtgVy951YuJtfChawLGyPMagAkXCgfFfa9cx2JlpngkKP RHUJHh5LLGiHl09sxs34mZEKkVhC93ooV7SDgCEKQWkca9EYh50IDZzIvmQ+MnNer7iN 4dyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iYWnQw3h; 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 eb13si4299110edb.8.2021.02.04.07.22.26; Thu, 04 Feb 2021 07:22:54 -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=iYWnQw3h; 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 S237174AbhBDPUf (ORCPT + 99 others); Thu, 4 Feb 2021 10:20:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237047AbhBDPTs (ORCPT ); Thu, 4 Feb 2021 10:19:48 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5FE9C061786; Thu, 4 Feb 2021 07:19:08 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id bl23so5939410ejb.5; Thu, 04 Feb 2021 07:19:08 -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=M0B41tZ9BhfpLW130tpoMukMFanCubX5mUQuKs1xFi0=; b=iYWnQw3hSsJEBErHWKDUIRMWHyND3VAfFPvB7gVkyB8D18b3eaWSt3iNjvjvrbHWQM 75Vdxp1oU1adk5KW22osTw+ituLWAmeQZ2m08qmG77wDsF0+nVY+IUxgrk9JjbLp6EM/ /Kf+nWKF1Bvd3a/oDHc2dxC+025HVLbw979OaCKqQpQUDOcbohLmO/PA/YqbcL8Jd33S ubUuQ95FsYX8UhwW7TJSqjN4SbxPeKoDFJXIFxi6zEbW1jS+Em2KWNOCjy6whR7BhlEq /QDuWCX6ldtTobr44tD7LVzn0l9ECAftuz5mpgLeUQkUUMFPrf9nPHpHp2toJ9qhwaVM YNtA== 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=M0B41tZ9BhfpLW130tpoMukMFanCubX5mUQuKs1xFi0=; b=AvyRVf7/FwzhIq0jP6OOI3FH6xhxCEXclnCftNIpDg0E/liZ249MSPx1Srai8R4tKO fAM+plP1fLvO7bp7i9ltP0aolzCLPghIkEXEwXQmvGdRgonguIt0V54LryFQsA/n7HN5 sQgoLr+T6kUPwA0P89KvZqhbmUlzAskqSZeAwUJLoglmLV/ESF5ZRxGHGLhoRE1CcrlU 98jJQfM4AWH1er1hE9vzmqedzksLRIj5rNbSgHDLF/70SQWT46Ej/29eCJTU6sD75aLB u3DaYWOB1ASt9icWOrDkSOhFKDz4SHhRX/tAsHQlzHEiSKkYo7WtZdT8tBfQQbw/dXtL WbBg== X-Gm-Message-State: AOAM5316jOaJbJViX0VkxFHON9pFVG+QuObfPO7YIXnmaIO2n0G9dsDs 0EkGfTkfFaKqOp6OM3XmrZdmJA83EVqObt43 X-Received: by 2002:a17:907:7289:: with SMTP id dt9mr8477022ejc.446.1612451947555; Thu, 04 Feb 2021 07:19:07 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id a6sm2600001ejs.79.2021.02.04.07.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 07:19:07 -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 1/9] mmc: atmel-mci: Use new tasklet API Date: Thu, 4 Feb 2021 16:18:39 +0100 Message-Id: <20210204151847.91353-2-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/atmel-mci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 632412066eda..807177c953f3 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -1719,9 +1719,9 @@ static void atmci_detect_change(struct timer_list *t) } } -static void atmci_tasklet_func(unsigned long priv) +static void atmci_tasklet_func(struct tasklet_struct *t) { - struct atmel_mci *host = (struct atmel_mci *)priv; + struct atmel_mci *host = from_tasklet(host, t, tasklet); struct mmc_request *mrq = host->mrq; struct mmc_data *data = host->data; enum atmel_mci_state state = host->state; @@ -2496,7 +2496,7 @@ static int atmci_probe(struct platform_device *pdev) host->mapbase = regs->start; - tasklet_init(&host->tasklet, atmci_tasklet_func, (unsigned long)host); + tasklet_setup(&host->tasklet, atmci_tasklet_func); ret = request_irq(irq, atmci_interrupt, 0, dev_name(&pdev->dev), host); if (ret) { -- 2.30.0