From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 96C37C433DF for ; Mon, 17 Aug 2020 09:02:51 +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 45CE72063A for ; Mon, 17 Aug 2020 09:02:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r5PVCq9D"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mGaGN7JD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45CE72063A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=Ud4CA9ZdER+3wP459UUN95TU9849I6dITLXdS8c4Ub0=; b=r5PVCq9DrZl6la6OvO428BT4aM mPw6eBkRRruC6643EIXvNHuOZqstiiZDzf3doFLdvJYoIzh0Ycb9dpUxp+oa/xWfw63DMvo8f7nMg MU7Pa1TnUUMDqrfIK+ifRS24Z46DaDtuhgOBBFuOWpvwWoW1q9YKYcPd3F2tvxLkZJ+XEW4WHJRSk G/Qkb2wYtZ7W/a39Ok335/VFhAe61VUCepZo9RSIny0px1croihP55jO4VgWv4gpTjH8YkeNEktFI XnBF5YiyKuUX/vyVAG4iSOl2RInOQ9yCmUl0VM8fJpu5IyelYfTdtg/3v3z0UJvPSSkULt+XuScgw kjTcAsZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7b0m-00040a-Ec; Mon, 17 Aug 2020 09:01:00 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7ac5-0007h0-SE for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2020 08:35:32 +0000 Received: by mail-pl1-x643.google.com with SMTP id f10so7141360plj.8 for ; Mon, 17 Aug 2020 01:35:29 -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=4nhWNM41f6BjKWP46DMIjPsIWGEGdOxdBi1jSC7XG8s=; b=mGaGN7JDJGgy/1WQUsKWaFTCgtC3rJsf9uTrL9370PCWKVjEpcQy9EI/xP8rVxFxDN DQIhtVNRxYd5wR3QuC/KZMts9WZPnoOmndIBmz7t+lB5n2DbwECCodBm/tqN8abCMd6W fKb81wMBVASTh9+YpvzvixeJADKQDAghKJ6T+AfCHs0fJnmHRSROgh+427SAETCDabE0 wt/mq0Z0DSqoHRUV9ZP3QzDHRLfplHZASTF3VWCHLT91w/d4h9XdXJm3+VCD5/vN2Jgn oEVypkDuBgsJrkHGE34tWKfqOJ3q+LX0nQ533oYNCTnFYVd4RZwp3maByR+ZeuvpmDue 63Xg== 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=4nhWNM41f6BjKWP46DMIjPsIWGEGdOxdBi1jSC7XG8s=; b=h5Pv1q64eWYA0Q6zvPPxNqlcMcN25RomR0Ej2CEyXMpJG4C0u7t9taooS3yGzfk0P3 Imy7XI4db+FEtsK03UxKfqxDJXaf0wCIrROR/C9MWH/ejui2oOW56FqdIE6G6pn/QknW MUuipQ5tzusBRlDhtfa1whK67q1FkzWEPbB+kce2CeU2ZlovMdk+CbaDQOx9ShKLsoyV mI09XxYSQ9FqrMZf2S8IIbBYKOTsrr++fNL0EAzEQmyJrdZ0q067Ff60SK7JPy61kpb1 rNOaNp2InjmyfhKy9lAui+FZcNiaeHQ56ir9Jg4SfQROfNaspTB8zOsY5Ui04rIbydBG kkyA== X-Gm-Message-State: AOAM533spVFD720TmGIpFZu322oMLPOv004YmM+mgumhi9pSCntUerm+ XIqKMq+sIURJgyviRNxUctY= X-Google-Smtp-Source: ABdhPJwpxyd4w90B/LHzc3wDMjJl+AoxneVsdWqfIUr98hR55sv5bW17uf9nyFyU9tMklV2BSez1zg== X-Received: by 2002:a17:90a:ce94:: with SMTP id g20mr11462006pju.61.1597653327838; Mon, 17 Aug 2020 01:35:27 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id h5sm18434068pfq.146.2020.08.17.01.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:35:27 -0700 (PDT) From: Allen Pais To: ludovic.desroches@microchip.com, ulf.hansson@linaro.org, manuel.lauss@gmail.com, mirq-linux@rere.qmqm.pl, jh80.chung@samsung.com, oakad@yahoo.com, yamada.masahiro@socionext.com, brucechang@via.com.tw, HaraldWelte@viatech.com Subject: [PATCH 01/10] mmc: atmel-mci: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:04:59 +0530 Message-Id: <20200817083508.22657-2-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817083508.22657-1-allen.lkml@gmail.com> References: <20200817083508.22657-1-allen.lkml@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_043530_084166_B9439171 X-CRM114-Status: GOOD ( 14.31 ) 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: inux-mmc@vger.kernel.org, Romain Perier , keescook@chromium.org, Allen Pais , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- 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 300901415aa2..562cf8eb993f 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.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel