Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1175869pxb; Thu, 21 Oct 2021 17:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5MF3jrSv7E1YoNAYF41+pvy+gyFjHCY62pvA6Az5x8rbqQkIf8lMry6G/0dErywLACFjJ X-Received: by 2002:a17:902:d885:b0:13f:c50f:9ac with SMTP id b5-20020a170902d88500b0013fc50f09acmr8245049plz.53.1634863202728; Thu, 21 Oct 2021 17:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634863202; cv=none; d=google.com; s=arc-20160816; b=V4eBZD/M5TniAPHAOTkGCYrg12RCN9xS1ZiwzoDgOnvjIMsy6hbCxvaRqKrp2Lq7Jw ZHklgRCM9tWNmZkcDwwSy8u4L/9d1ktywQc3MSPuyz3WCX2rXZuqpc+y0AQM9E9eYAXV q1xgB0whB6yNx0TBHUFw/4zvuJNMA8JMb9TeKYyRzXKvVi5PPBp3dcaf/ZIILZDj/7Fz YHk+DfPTsNWVsQr7fBHihF4dxrX9jEauQu8hS7aPFLdpSNHBJSQ+PYKSetoTz6Ax6aR8 2j9VkbRPS+/7licLhGyqbBqED82GuhWFYgQYA6Nqs2bfAtL70E7pHU/54PHKj4CYBbKr n2EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=k8cCGwIM+MEipkZPPkMbL/O4ATGbMjxLb4ByRgUs5DA=; b=ItMpE5ehsrXylXVfb5/zvyVR2MweBeHLsn9Y+3vRDTK1zNaZhXJ67gnukYbNa0dv6s +jPo+Wcsee8E4TbRJv+2ihFOEOZjkU/v+blzUHGKUgzRjoJBHOuwPCeWX1lDwMCx2FQo X+B3xUxJQ39pehjrK4PZJWEQcOGbBL3HRecDD0CzssHBhOObR9Cn5qhjEKYlbDY6n5jH NU+H1w2pm22d9O3myAGNGi8MUOhwwiCROha40JhjUv+c8YN1yvWsl6RQVbDj0j0wZDql XbBz1fn8cHbAcf7mjmmsejZzNtGgBpjfsDXw/UfEKGGYaGvNwiaOWVDNCwqybM0/G7Jp GPEg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si9287987pfk.186.2021.10.21.17.39.49; Thu, 21 Oct 2021 17:40:02 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbhJVAju (ORCPT + 99 others); Thu, 21 Oct 2021 20:39:50 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:35458 "EHLO mail-qv1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231770AbhJVAjt (ORCPT ); Thu, 21 Oct 2021 20:39:49 -0400 Received: by mail-qv1-f47.google.com with SMTP id a16so1538095qvm.2 for ; Thu, 21 Oct 2021 17:37:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k8cCGwIM+MEipkZPPkMbL/O4ATGbMjxLb4ByRgUs5DA=; b=Pqj9CkCj8Um/Uq6/E8bZchkM2kFXByYCAU9a13chVECBgNsO4TcXpQDSCUdHKss8aE cF8/e3MkZCzu956X+Tv++jRKXtAmsZ6miepoSwi4iqMupyi3aXJYCicrXbtH+p6xx8tb ZyRTQWFCCygIV/dMoTVGBRyzSOMggjz68yv+1ylAOo5C7VtKgWybB+mGxMRva/RvqWbg Z25RbPxfyOebvbfT5q435IAH4RfJy+o1H/3OQLKSXSF1dpB0eDn7WLTyhH/TITvGGVQQ Pe3W7TUFmqa5rWyI6ajGTN8yk/8ErCvKeihkvvAxQlhQ5H6Zb1c7fy7c9zIDkznNVZKI aaMg== X-Gm-Message-State: AOAM533dgL4sr/ySYnVRrL4b+S+wSGyeWsKFO/te95v/smlNuZHtCASu xi4VXx2ZXjiAy3LnxdehgKuprDqosBU= X-Received: by 2002:a05:6214:5086:: with SMTP id kk6mr8432174qvb.63.1634863052175; Thu, 21 Oct 2021 17:37:32 -0700 (PDT) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com. [209.85.160.181]) by smtp.gmail.com with ESMTPSA id s189sm3309420qka.100.2021.10.21.17.37.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Oct 2021 17:37:32 -0700 (PDT) Received: by mail-qt1-f181.google.com with SMTP id g17so2164712qtk.8 for ; Thu, 21 Oct 2021 17:37:31 -0700 (PDT) X-Received: by 2002:ac8:74c7:: with SMTP id j7mr9593942qtr.118.1634863051346; Thu, 21 Oct 2021 17:37:31 -0700 (PDT) MIME-Version: 1.0 References: <20210908071631.660-1-caihuoqing@baidu.com> <20210908071631.660-2-caihuoqing@baidu.com> In-Reply-To: <20210908071631.660-2-caihuoqing@baidu.com> From: Li Yang Date: Thu, 21 Oct 2021 19:37:20 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] soc: fsl: rcpm: Make use of the helper function devm_platform_ioremap_resource() To: Cai Huoqing Cc: linuxppc-dev , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 8, 2021 at 2:20 AM Cai Huoqing wrote: > > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Applied for next. Thanks. > --- > drivers/soc/fsl/rcpm.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c > index 90d3f4060b0c..3d0cae30c769 100644 > --- a/drivers/soc/fsl/rcpm.c > +++ b/drivers/soc/fsl/rcpm.c > @@ -146,7 +146,6 @@ static const struct dev_pm_ops rcpm_pm_ops = { > static int rcpm_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > - struct resource *r; > struct rcpm *rcpm; > int ret; > > @@ -154,11 +153,7 @@ static int rcpm_probe(struct platform_device *pdev) > if (!rcpm) > return -ENOMEM; > > - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (!r) > - return -ENODEV; > - > - rcpm->ippdexpcr_base = devm_ioremap_resource(&pdev->dev, r); > + rcpm->ippdexpcr_base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(rcpm->ippdexpcr_base)) { > ret = PTR_ERR(rcpm->ippdexpcr_base); > return ret; > -- > 2.25.1 >