Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp55593pxb; Wed, 22 Sep 2021 15:49:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmkXWH6noGOEFDJCm7fo4emeyt10s+Xdhd96ivPj0MrwqFKsTNDRoL+aLz+CvlsTnZTa72 X-Received: by 2002:a92:cdad:: with SMTP id g13mr1110731ild.149.1632350990590; Wed, 22 Sep 2021 15:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632350990; cv=none; d=google.com; s=arc-20160816; b=rrJiisCoQTgD3GEMog0zUaL6RoCd3QRyQpewKESONS3Pj9a9/LhMQ2wYYCZTNWeCd8 XutAIalubZOZyUR7uqkGZd9htIJ+WkZPBwVOFC2AhhpejPhYUhFvr9RKLo35mPw0IalJ 151pEKIkPrjN8ReHamj4ISh8PLOJ89EsIQVaVUJYkAd7Y8eevcvCu7oulVgIeinkAyZD cVOcZ9E8efA5E9QaWlPLUEsx+d0mDmzWPYGGAdBXMhbJT815amv8FJelWiGktqIU+EI7 qVk1L6CGvlk+lKwtLLh8D9caLYSgzGCpKlYXjA/9sSxvb6FNWFen25aNoPA28RXzOBWC k+0w== 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:dkim-signature; bh=WZ8UaW4MwIXPWY0tysGL313yTmy9jd3NgPrQimA/Q4A=; b=PFwHJ2MSaEcUClxYPbQYSM4UnK/3WZkpA/Cy9WfDRYSN7Fe74UNn+j1EqBAshwF5v/ obutXX0OkNxJ2nCpv1+8iA+72kZBDBLqpp+E6LRgufCvDZ3+WleU/7iYfcHz0WCm6tEo Y6DnJwiIaLISeOoCnHYz4jRiX/zG5SfrnQdtDEZWWeGL/5HPUaNHRVbmUqTma55V2q4y xFsXx8N1Le7hXLJ6IDlshqcQa/W0Kw4znxJbcbfo3PJm6+5xLw34muMNFS3ICUVaQ5RE CZutux0zIRscQlfES3gM5wf/A3cKgpJ0ec645mMrevtDaYxQ3YBPlYgpDnOzkTee37d9 aR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FoC+oxH6; 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 i2si4254628ilv.102.2021.09.22.15.49.38; Wed, 22 Sep 2021 15:49:50 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FoC+oxH6; 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 S238337AbhIVWtO (ORCPT + 99 others); Wed, 22 Sep 2021 18:49:14 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:60108 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhIVWtN (ORCPT ); Wed, 22 Sep 2021 18:49:13 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 85775E52; Thu, 23 Sep 2021 00:47:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1632350861; bh=/JIfGkpHJEOWf70+fx28BF1bpVMNHC1Qx+yk5ONMQZY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FoC+oxH6+XHWFhejlBZDMmfCUhMwh6uHdZ5u0HN4duv3Xd7LY4u7hGMjgn3SHuyCT jmGKay7MRcR1GDPc9FdVlryW3o9sS14wh0mFyHdfmxEOS6Xig4dpqXNyDEyU0yNTF6 Rgaf1J3LhEuoe3NIKGyoOnkJBrY/q/k0co4cNWC8= Date: Thu, 23 Sep 2021 01:47:40 +0300 From: Laurent Pinchart To: Cai Huoqing Cc: Kieran Bingham , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: vsp1: Make use of the helper function devm_platform_ioremap_resource() Message-ID: References: <20210901055709.8079-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210901055709.8079-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cai, Thank you for the patch. On Wed, Sep 01, 2021 at 01:57:08PM +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 Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/vsp1/vsp1_drv.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/media/platform/vsp1/vsp1_drv.c b/drivers/media/platform/vsp1/vsp1_drv.c > index de442d6c9926..8acd6d45d8d0 100644 > --- a/drivers/media/platform/vsp1/vsp1_drv.c > +++ b/drivers/media/platform/vsp1/vsp1_drv.c > @@ -785,7 +785,6 @@ static int vsp1_probe(struct platform_device *pdev) > struct vsp1_device *vsp1; > struct device_node *fcp_node; > struct resource *irq; > - struct resource *io; > unsigned int i; > int ret; > > @@ -800,8 +799,7 @@ static int vsp1_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, vsp1); > > /* I/O and IRQ resources (clock managed by the clock PM domain). */ > - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - vsp1->mmio = devm_ioremap_resource(&pdev->dev, io); > + vsp1->mmio = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(vsp1->mmio)) > return PTR_ERR(vsp1->mmio); > -- Regards, Laurent Pinchart