Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7075646ybi; Mon, 22 Jul 2019 06:44:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3BWyY9ntazKbl8wKPp0lnbLfS880jrV0XJvUzTcAOZSh3YfOFNkQuAoQx/lYsgj7x2smG X-Received: by 2002:a62:642:: with SMTP id 63mr347300pfg.257.1563803093640; Mon, 22 Jul 2019 06:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563803093; cv=none; d=google.com; s=arc-20160816; b=l1bsK3+paFEfRlaAYgkK+10hJnv1IwrqDf8KvEBBjEP6CCY7k+Vz9WQ+UsbplXZFyi RQTBWO23bGE7oJkoYZo8/fuPKNYu92jTG76Fl5pmyOpXvGBD8vaOFvA3N7JvLLqzfz+g tsKdGspdj19541OyPDSJ1TwQZ25a8Nj9iSG1dJdLx5G30P41SE1e/TZSmtJ+YFUAf0iN 7KlGwEJMisHMOnXC86RqEizzy63mxgvFCidaSwiXbaU+M4RE1A7elU3nSi35WLRLrzMk ql2WBFidzukQEsGi76KGG6VtpyOMm2syk68cPLGwBo2yu+tIHX7a/9fkyKSwXA8PZqWD AAEg== 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=uGmqG4ptpoLIjXtcAYy8btzZvJKDKHMEImKjNaUWrIw=; b=OkTCJnFIqNLGXStBGxLFhRO0yBTPu2/BMOdt/GegMfEvGvvpcmohcpGHKjYiclChBq Ukg23oh1w+WP+CNEJPF4lzGT4Fk+SRkqe4trurVba1PzDMwy7/zETHUSHYtyOfhuev23 YS3floqBAB91mWqZjvdOU2fVVT09kQ+z83+06NxRa6lx4BNVOLac4bYvWKcfiCrQv5wb CO7x2gx99ii1fM1xHjU11mFSha/91DIfW/SMPqyNVmgYCDd13gi7HZjNjsVASV1vHhHo D7rzH7yvhI0by4uQyiThWGGae5Bus7tvLo8VufKWDdqr5eu1fQUcscdyz0FyIlFWO4sO 9S0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cXznW2fa; 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 t15si9330757plo.360.2019.07.22.06.44.36; Mon, 22 Jul 2019 06:44:53 -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=cXznW2fa; 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 S1730624AbfGVNnr (ORCPT + 99 others); Mon, 22 Jul 2019 09:43:47 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:46594 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729877AbfGVNnq (ORCPT ); Mon, 22 Jul 2019 09:43:46 -0400 Received: by mail-vs1-f66.google.com with SMTP id r3so26081640vsr.13 for ; Mon, 22 Jul 2019 06:43:45 -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=uGmqG4ptpoLIjXtcAYy8btzZvJKDKHMEImKjNaUWrIw=; b=cXznW2faB3D/zdq8swGVmyFl8k+9mAGF+PgWbMSfNGiTYAg646sq3YBoAbRbi9gTv7 1MjSWnUxAD3qZGkTFy9ERBAOA1/OqdzaDngC73lRQRVFjw4yANKrr7ksdw68RfR2u3f1 k4Xx6OL6BAVjai3eJBIl0Phg3dUszMgfYzZJDqkr63ZcUzA9t17Bgw31+mCMCgN86FPN T7zxWbbDUhAg+mfGUFjJLvlGSU4eq33rw4UCFosTKHZZ/R/E7HwhdeTrxcOZxHFoQWQ/ vdmvtJgN6mHpn7QEtxBHfwSrysZTZClVtNYUvxqiTQuGIrxQt6Y8vsReWrs8Ow8AWgR8 z61Q== 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=uGmqG4ptpoLIjXtcAYy8btzZvJKDKHMEImKjNaUWrIw=; b=WSVIvDypabonlz8/GTPwUcWbiGD90Aeey5PLOIF2+czsCAm+1mmNReqv0iRPv4UHix ldiXyPjGMMElwVNOkPrFepC5ySlI25ss2DzFPV1yYNTB+f8kiOL5yAcpEGjcC5jCbVs+ kEnBaWPV2Db5C97660U6XnvuwAmZD6rkMjt4ulIbdd+Fl4R6AfQjdej0y008lNqQ7hTg EfhyrZKVFFTuMUCPJajUEYXRXfYpO5T2MyrvC6aw39lW8hnNmbOQRAZk34vgtaTc6h7P yaefv4JfuVv8CigGxuEycHOpOSYuZH3/VulyC1QAk7cx9vVeARS4mbe9Gbm2GUE5gasa 4E8Q== X-Gm-Message-State: APjAAAW7xbV8ffxkYyioePoLi3aZNBkW6yktovfMzbA1xFSaxZ3o+95q +OgdBMwyKbxRLDN4O32EdCh37Y9LPIrggvXkV05I6A== X-Received: by 2002:a67:ee16:: with SMTP id f22mr41692590vsp.191.1563803025344; Mon, 22 Jul 2019 06:43:45 -0700 (PDT) MIME-Version: 1.0 References: <20190717085259.31235-1-Anson.Huang@nxp.com> In-Reply-To: <20190717085259.31235-1-Anson.Huang@nxp.com> From: Ulf Hansson Date: Mon, 22 Jul 2019 15:43:09 +0200 Message-ID: Subject: Re: [PATCH] mmc: mxs: use devm_platform_ioremap_resource() to simplify code To: Anson Huang Cc: Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Linus Walleij , Stefan Wahren , Kate Stewart , Thomas Gleixner , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List , dl-linux-imx 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 Wed, 17 Jul 2019 at 11:02, wrote: > > From: Anson Huang > > Use the new helper devm_platform_ioremap_resource() which wraps the > platform_get_resource() and devm_ioremap_resource() together, to > simplify the code. > > Signed-off-by: Anson Huang Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/mxs-mmc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c > index b334e81..78e7e35 100644 > --- a/drivers/mmc/host/mxs-mmc.c > +++ b/drivers/mmc/host/mxs-mmc.c > @@ -571,7 +571,6 @@ static int mxs_mmc_probe(struct platform_device *pdev) > struct device_node *np = pdev->dev.of_node; > struct mxs_mmc_host *host; > struct mmc_host *mmc; > - struct resource *iores; > int ret = 0, irq_err; > struct regulator *reg_vmmc; > struct mxs_ssp *ssp; > @@ -587,8 +586,7 @@ static int mxs_mmc_probe(struct platform_device *pdev) > host = mmc_priv(mmc); > ssp = &host->ssp; > ssp->dev = &pdev->dev; > - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - ssp->base = devm_ioremap_resource(&pdev->dev, iores); > + ssp->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(ssp->base)) { > ret = PTR_ERR(ssp->base); > goto out_mmc_free; > -- > 2.7.4 >