From patchwork Thu Feb 4 15:18:43 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: 12067535 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 3AEA6C433E6 for ; Thu, 4 Feb 2021 15:20:42 +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 EDF5364DDA for ; Thu, 4 Feb 2021 15:20:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDF5364DDA 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=zIOHGZJQ4wKsTcEcaC6bzU0b/ZF+D+Ln+9JkkxSfDbs=; b=NRwL1jSUroYrdkxzRb4FeheKh 1Vhnk3eI3Im+CEywkAafBXUqXDsEuqxzNUiyGOaTzSvR7Opeao9FSv9xAO0cypAnO8zGkjALgy5qW ptgI8VsBIzWZXBFhwytlq2NvTeNTqMF6sRibtZD20XFUexjK7rtIQ6OLD8lgbu02f1HdshWqiHkwo iw8jitOnmRYcWh/sbjsILWw/GVDaxsnrY911j0thTv7xKl8Dw/hpugdynvNQIFymncNPRfjCM+JxV jOLB5UaNh7Y0fZOsvSL3H7DfcER1ofRpTUWDYp5Jj+WkSAEO+plWV1DRxsPZGrUCfn0iyZdy/SpJz 4RAWhMiKQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPs-0008Dg-PW; Thu, 04 Feb 2021 15:19:32 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPc-00088B-7I for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 15:19:18 +0000 Received: by mail-ed1-x533.google.com with SMTP id q2so4606761edi.4 for ; Thu, 04 Feb 2021 07:19:15 -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=LhxDawnboy/GOphLJPpwmu1nF8PhAWga8yWTDRyj8XA=; b=HHM0tu+en/eiYDTTVtlaIPgY73OWrtR8jXN3A7v8VdCMFu1WCO03MK1uu37ltdUyrA baMzWM5FUOYzCHmVv1foThsw0iwyok9Di2vg8TVPZCSoYgIZ/OOfY4v/goTOE4Uwyowt 1/H6erNXJWEtOO51eDB/c5tk8X71qffK22OUmXK6QpB06rQZaRPWikOqL7+GfFrb2kTw 0DJAtUb2WywdQwU6wsik3h4AGOQsCgMXUGK0a/W9woFfU3o81A7ZA6pFdC0B4vo6yRnR rSd5+O35CW3dhOpbtztWWKHdc7kPaqFC1MgvlOrF6Yut0roaByCX79cLY6SPZ/Z63tsr 26mQ== 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=LhxDawnboy/GOphLJPpwmu1nF8PhAWga8yWTDRyj8XA=; b=e98M0Gje10hAkR0AFpJANJR8cfaB1kOqKNDFN9mdc3EqhWOfvEiwtTWHDgD0zNuchX ylZlSyYGqkZ0sOH8eQUqPdnGdei80+vRsBePhMs1tlkUc+2jwJrarXxRHWvHJ40/0PAQ tUM8AJH5dqni0IYfMzg4yI9mytrh+XJUSrV16zCgxBwrQ5UdonNtvy7mnr3UWjnT9s8e /sjJt+tJ4ilg/8ym1uEO4R4p1i1R+WjahUMwpxBgPE/rF7cEoVoexK52ARZDhGfpU97S Y29oNMgs6x3u/BIZNjJRIKEXYopPy6oxkQXEqYhzi6l3AmFeB+OI2Vd5BSm0jI/AqYte UunQ== X-Gm-Message-State: AOAM530R15AlDT5pBWEgkfWrbWSXdwLyfxBWMlC24y7MtQIzc4kiX/wk Zu9g0+NmEtOqtBAKBr5hyXg= X-Google-Smtp-Source: ABdhPJwKity2jdws4yrIx+7J7mgQzjqxjDjle4kCJ+oulDjfv3k5nDcDMydPchdLcweT589z7HQq1Q== X-Received: by 2002:a05:6402:1484:: with SMTP id e4mr1079509edv.104.1612451954704; Thu, 04 Feb 2021 07:19:14 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id a6sm2600001ejs.79.2021.02.04.07.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 07:19:14 -0800 (PST) From: Emil Renner Berthing To: linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 5/9] mmc: s3cmci: Use new tasklet API Date: Thu, 4 Feb 2021 16:18:43 +0100 Message-Id: <20210204151847.91353-6-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_101916_309352_69140261 X-CRM114-Status: GOOD ( 13.26 ) 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/s3cmci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index a33a7823c265..0ca6f6d30b75 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -540,9 +540,9 @@ static void do_pio_write(struct s3cmci_host *host) enable_imask(host, S3C2410_SDIIMSK_TXFIFOHALF); } -static void pio_tasklet(unsigned long data) +static void pio_tasklet(struct tasklet_struct *t) { - struct s3cmci_host *host = (struct s3cmci_host *) data; + struct s3cmci_host *host = from_tasklet(host, t, pio_tasklet); s3cmci_disable_irq(host, true); @@ -1532,7 +1532,7 @@ static int s3cmci_probe(struct platform_device *pdev) host->pdata = pdev->dev.platform_data; spin_lock_init(&host->complete_lock); - tasklet_init(&host->pio_tasklet, pio_tasklet, (unsigned long) host); + tasklet_setup(&host->pio_tasklet, pio_tasklet); if (host->is2440) { host->sdiimsk = S3C2440_SDIIMSK;