Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11186064ybi; Thu, 25 Jul 2019 11:29:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmZjvpsPvhG/t0YH3qJLI9JrCSBcK+r5L6IA0sueHwTZ+YCud/PhzXsafr5A8rxIGNUC5I X-Received: by 2002:a63:d002:: with SMTP id z2mr89735852pgf.364.1564079360803; Thu, 25 Jul 2019 11:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564079360; cv=none; d=google.com; s=arc-20160816; b=XIzW2+yw16KhlM8u0DNZcCDkFfZ6BdFe9soREuWqSaGx/6UW9PUv/hIybzPdTR9zjR f18UuK3hr9EijQejPjURk5tuLmtx4GK5m40ZQC8Y/kphL/Kts3/F6daE3kIYkZgI2NFP kOVu3DHKuLgt/KNZlwTJDVQBXRYrPqyonqKVjS5mRJvEFV55FIeU9z5ru1qJlr/eQsxp IhWANol2iCUqN0OvrjWBAn1bytSmVFTVAJ9X2BqnAQ0BPdSPx6uAdK+gIaeN8dsJKjli v3AzUqfFPmbSub8dRUuR0Julb5vo9Jf/3p04WIvcUol3izfYeph7AztN9Lk0CKm1wcHn Ou3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KwM2+qYHt0UEBA6UJDkeQDcGwUyIPjkorh2VTV9IDzw=; b=xa5DkHq6UDzvbynr0b65RIe4MNB5XXSdZ18DxRiQwES1ZR0RVReQY6tHRBDBi9y3Rf Opc6EHhHh64ZpIFlSzbmGYAecQis/PlXEOpSi27/hrFsFii/5jKKXGG8hHNz6pPbUTUR TzyWYeMWJi+zr71ehgMuCd8ENSehZBN1iqeqW3Xwfs/qDrSXa1Ibrb5IjoWxBSTo6yK8 6ga2vR94YA4TF/f2dGg2DcZ8XFqXQJkMKnS6WzhjRM9uIwyr6b00XZKBJV2Xw8SubJEj jOYeqbZgfibc0rwv47woW4vUKvH1uDnfQWRxa+pf8nFmww4nGL0gK6I5mo82N+LPNKMC d8Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UpD8rDzo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si16099787pfr.52.2019.07.25.11.29.06; Thu, 25 Jul 2019 11:29:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UpD8rDzo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729754AbfGYNXv (ORCPT + 99 others); Thu, 25 Jul 2019 09:23:51 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:47084 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbfGYNXu (ORCPT ); Thu, 25 Jul 2019 09:23:50 -0400 Received: by mail-oi1-f194.google.com with SMTP id 65so37620284oid.13 for ; Thu, 25 Jul 2019 06:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KwM2+qYHt0UEBA6UJDkeQDcGwUyIPjkorh2VTV9IDzw=; b=UpD8rDzoKa7CF0RszwEp2yu+B1fDuQVKouFsCxQnA5dTxpou+Ba3K9lVpz2jMPqq/1 sxeFNJK6Sf38cQGqrVLHeAQfBsqpgOTYVX12hsupalkh+KnDYymBDvqA/45etUsKBwvZ 0Ab4Z822WfZQm+okMa5x6zu0rnY+sVZpRjGRLe4ekSilG1jJLTHwNCG57S00SQJ5TMeq FkIBGCDmkRRu2QfHuvfH0DHb8rHjKJn2RvtTKU2M76OnXw1kYCVoK5OQljlokqn7EnmN 6P5kJri4WNNlZJ+Uj/pSGWD+8m6are5chNBp4JvdEWWOhAaKh9LZB24sZiuH7WT7DHK/ kCJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KwM2+qYHt0UEBA6UJDkeQDcGwUyIPjkorh2VTV9IDzw=; b=m9gLTcsVv/IGOn1YWKQXSjHEOZ2k8bQx81SaoOdAT9SShvJ1CwXR66c5WL0o1DideF CE+nSLPujMYk9DmMftLfq5exe3dR/2uCJRNjSUnWr9lZd9+xCdUtkL3QRL+yICiRVFaD gynuPXERo9Ag/5ct/21RB/g4lvLElRutG40s+n0Fap4ber9/DGTToKocPW/d0ZPaO6ea rfNebM7hzw8Wz/JkNsZkCMDq1zZ9TV79brEobZeKvO6zrDGOKSXVHq1H/H3MHY46lEYU z8E30nZy47a2xEP6Ngwxf7PuOx/RMRtStbtz6dBtHWe7be5dDl5jFACipA7PuGdTtrHJ VI7w== X-Gm-Message-State: APjAAAUzmFSYzJMs4ryZ95sNf//VF3G7QRMiRThYHl6iFE33QQtv+Nwl 7fPnWUUgdR5zXkSyfMIabTjK2sYuZJD+rJKOJb+gB3m9 X-Received: by 2002:ac5:c2d2:: with SMTP id i18mr33137975vkk.36.1564060526687; Thu, 25 Jul 2019 06:15:26 -0700 (PDT) MIME-Version: 1.0 References: <20190725151748.1a59b1ba@xhacker.debian> In-Reply-To: <20190725151748.1a59b1ba@xhacker.debian> From: Ulf Hansson Date: Thu, 25 Jul 2019 15:14:50 +0200 Message-ID: Subject: Re: [PATCH] mmc: sdhci-pltfm: Use devm_platform_ioremap_resource() to simplify code To: Jisheng Zhang Cc: Adrian Hunter , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Jul 2019 at 09:28, Jisheng Zhang wrote: > > devm_platform_ioremap_resource() wraps platform_get_resource() and > devm_ioremap_resource() in a single helper, let's use that helper to > simplify the code. > > Signed-off-by: Jisheng Zhang Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pltfm.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c > index d268b3b8850a..11ecff9e998d 100644 > --- a/drivers/mmc/host/sdhci-pltfm.c > +++ b/drivers/mmc/host/sdhci-pltfm.c > @@ -118,12 +118,10 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, > size_t priv_size) > { > struct sdhci_host *host; > - struct resource *iomem; > void __iomem *ioaddr; > int irq, ret; > > - iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - ioaddr = devm_ioremap_resource(&pdev->dev, iomem); > + ioaddr = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(ioaddr)) { > ret = PTR_ERR(ioaddr); > goto err; > -- > 2.22.0 >