Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp540289pxb; Fri, 3 Sep 2021 07:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTjeuTGZLXQC2VU3Rd+48MPMNfIzWcx9nK69hA9c1JHa7G1p3bnuQ5Oi5KBhSj/jrv7iBm X-Received: by 2002:a17:907:3e03:: with SMTP id hp3mr4638290ejc.183.1630680325693; Fri, 03 Sep 2021 07:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630680325; cv=none; d=google.com; s=arc-20160816; b=HSyFAz1QMzfO+PMhtacwO/0q8UQRce0UgxUrNs7rZI1yosSyvOILEeZcHUPU2NPnJ+ 2kdnW5KeG2vcYktq3KEHkcyAb7fIpVbbN5rs1Mm7/z7psNizXaTK1EhlcimVT2rmOCXU nxaqcg9mdx7YjssVeEWw1kB3HfS98Er5eHSmSGuXFN5FNvddrShaHcJJVUI8Tl2dTr/1 uRWukkmoeFaMw0VJryNVse3Vf2lSMltTFBnPC1VRMaC6aIMnrCvUQJYBanp48ndfiia6 kdz7HrjcnuMUtstlqXA+sM3aw31YiMINuo0qVl7HW33oYZmj42XrcAx754hU4I06drDB 22Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=abjf8elC98f0h42ydYHYzyccO96DdKrIQMyEGiGynIw=; b=d9mtGr8u7oJq3f9f+KFgju5aiww79ockTtuzrK0o1d9uU3mYx2x1FzB3zmhqXCIY2g xIDeaIPjmVF1SzrlnXiqsMTw4RYMDwZOf+WnLzC+1//hjE/8vL4suNlgXtdgSrrOJD9w fmn6k+LAew0pObseSyAbx9Dc6dN4ta0aMkdzS706OQe37h40cFBjIMK2WR7fG5zntQ1d lY0OV/GBvEy4JF0aZ8mfqAZgIDui+OdCb2F/hFNHp8ldxLUXh6kjPr/popjK20PHp9u9 hEDl7DprvdWUHuzoJX5emLLa1NIR55lGyqy8mcb0Hu28d98EtXLfdqGpSRfaG1ywQDzi Qopg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si5812417ejd.745.2021.09.03.07.44.59; Fri, 03 Sep 2021 07:45:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349380AbhICO0r (ORCPT + 99 others); Fri, 3 Sep 2021 10:26:47 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:35765 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233092AbhICO0r (ORCPT ); Fri, 3 Sep 2021 10:26:47 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id D3944240010; Fri, 3 Sep 2021 14:25:44 +0000 (UTC) Date: Fri, 3 Sep 2021 16:26:33 +0200 From: Jacopo Mondi To: Cai Huoqing Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: renesas-ceu: Make use of the helper function devm_platform_ioremap_resource() Message-ID: <20210903142633.iavhmk3t7zmqonbd@uno.localdomain> References: <20210901055540.7479-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210901055540.7479-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Cai, On Wed, Sep 01, 2021 at 01:55:39PM +0800, 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 Acked-by: Jacopo Mondi Thanks j > --- > drivers/media/platform/renesas-ceu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/media/platform/renesas-ceu.c b/drivers/media/platform/renesas-ceu.c > index 9376eb363748..2e8dbacc414e 100644 > --- a/drivers/media/platform/renesas-ceu.c > +++ b/drivers/media/platform/renesas-ceu.c > @@ -1628,7 +1628,6 @@ static int ceu_probe(struct platform_device *pdev) > struct device *dev = &pdev->dev; > const struct ceu_data *ceu_data; > struct ceu_device *ceudev; > - struct resource *res; > unsigned int irq; > int num_subdevs; > int ret; > @@ -1644,8 +1643,7 @@ static int ceu_probe(struct platform_device *pdev) > spin_lock_init(&ceudev->lock); > mutex_init(&ceudev->mlock); > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - ceudev->base = devm_ioremap_resource(dev, res); > + ceudev->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(ceudev->base)) { > ret = PTR_ERR(ceudev->base); > goto error_free_ceudev; > -- > 2.25.1 >