Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp996112pxb; Wed, 1 Sep 2021 14:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjPPMFVHNMJVdzQaWTYwHS30NJcGx4jjGnhN4JTA3rhwdBXOf5EEQCUV8zuJz50OR96WOG X-Received: by 2002:a17:906:7f01:: with SMTP id d1mr1808076ejr.318.1630533001294; Wed, 01 Sep 2021 14:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630533001; cv=none; d=google.com; s=arc-20160816; b=r6/6XvTb3e8NSn7UXB2cfrsfdQz72pZhVYwT42CTWQlanc2SbKw8EN/DTSRvlsZwgA kvtF/Fa4KNDyuD2rgxIFGNp7DuUY9fy5GKwb35JAh5VKGDjTSo0PN6gRQEnjlZdzY2v3 oNR7irCRJ/GOUjJLKX1XhkCvKUp6b3X9EmJ7eikJGOjFcdoi2TlwlAn17HXLEq7vj6DB FV3Yfhec2fL3CRIdOi8jz9ek0IV2+n+z1invv7BZg3pCwqDW6wv9OvF1UdKlGYLJefE4 vkAO9V6sa77SikECCqsSt2oS2uh8iwHmgnuS8oIoVUaw+nCo6+b58F5bvdf7VIJxuwed yq3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Z4JMjFgGT2PacdOvsOI4eWdulAE5LgnjdURDWMGi9q8=; b=TQD/yJkzDbCIosm17DOe9pNYkPxMCfs5PbbqZeJt7e54Uogych4Cd2mc6QJDzFc5ZM qEpZz3ladZ9cXz8+L1o7U/++TWillR7hNsSrNLPPHvaTf9vEKvFB1PqECkBrI3Rzncsi HC7skITnhRur4+3oSMvWIi9ya/9em0MGcJwPYEwI8+6VoB0+g5OaV6bxv/GRg60NrHcc 1CzS0M2PdKM5QFPiTBC7nGzj8xIodabgfptVxXfPskwVWDDpEKGrqN/Ffx/5ubcsyTwm eDSgf7HLuMy2/iGH/Yzg3k+sjpQoU0Q6LPoaA9Kz4gKibKiw9yq7PQhIkpc375rlkZka GOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=v7v2nHlA; 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 p12si1224194ejy.596.2021.09.01.14.49.36; Wed, 01 Sep 2021 14:50:01 -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=v7v2nHlA; 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 S243086AbhIAIQf (ORCPT + 99 others); Wed, 1 Sep 2021 04:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243005AbhIAIQf (ORCPT ); Wed, 1 Sep 2021 04:16:35 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 908EBC061575; Wed, 1 Sep 2021 01:15:38 -0700 (PDT) Received: from [192.168.0.20] (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2E1CF3D7; Wed, 1 Sep 2021 10:15:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1630484135; bh=hJ0SsO3gUOJUFGUmE/5bd8sdDQdAUobtiS3lpxemB1U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=v7v2nHlA9i2mq6ZcBsqC4xSPUrb+tjJn9wxutcOO18EF7ccHMiQiyleFbXLoiICiq +tBNF9gxCWlv9cN+i40yhR6D8ULgPzTjt53hJpEqcWOeXYEV6oaN6yNWsr4wOoX1Ng 0v10G3Ly44tpYspMUtJDWmjhEmPSp+Y9VmZI+1l4= Subject: Re: [PATCH] media: vsp1: Make use of the helper function devm_platform_ioremap_resource() To: Cai Huoqing Cc: Laurent Pinchart , Kieran Bingham , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210901055709.8079-1-caihuoqing@baidu.com> From: Kieran Bingham Message-ID: <8b184d7c-1e55-3227-c01a-41f45b3402b5@ideasonboard.com> Date: Wed, 1 Sep 2021 09:15:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210901055709.8079-1-caihuoqing@baidu.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/09/2021 06:57, Cai Huoqing wrote: > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately Reviewed-by: Kieran Bingham > Signed-off-by: Cai Huoqing > --- > 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); > >