Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp337820pxb; Tue, 31 Aug 2021 23:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLEA2s4qV6eSc3H9jEaUQOQ47tr+jLb0ZLVLGpnoJFfrfBUOZ2m6qBUabF4+1zMkJTlnJh X-Received: by 2002:a5d:8b04:: with SMTP id k4mr25788856ion.58.1630477489745; Tue, 31 Aug 2021 23:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630477489; cv=none; d=google.com; s=arc-20160816; b=ybJY5y5jIrwmBKqS+1OQIFhlwVTtD/6Bw2O3v5tkuwSE0NRPXfc6w/54jsApVfk5CC sp0wBwSDFUGM6F4oiDXcPVh2yV8co8REE/CR0GJb5wqVduxrnAr/+e4Ui+jTmRfAGqn3 s8+yTdcOf6u42liyxM70PMkKF70BwpBtf/GZs0qNNVWTEuJB8JqmIrnoq/xlLsvNUjIx /5HEQNWmD/mFSObwNM+EoNMa/UlUrE/J9d4yZO+GrM4N3y/QQIB7AZ5/7OHr0NQun9U8 NUvqFot54zq0PGS1A6v4qgtB+Gi1SEnk23OVNDC9TkeTDeFHq9mFzpAd/3wrNVA9vpDB jFJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=oM7MPHVRrGP87/apFTF1m2gF4ifZwatbmjiikxLHQss=; b=UCHn1m+8tIcVb8gZ/SnECnmSkC/X0im01HtU4aF7SxP8lckJLPwzl/CVOOzg8VzudS wT4VYIaewwMF1g4jtL7INbfyVCZWStfM0D55vPwrmR+jPG3s9sl7JC9V5LLOXWEh9V4H LVhx9ztJRPHAxX0CpnRsBZah3g/ErrMTpQgJScEJ25qiZU+ZZnUK+CSsMFn06txIfYyb mCTonxlk8TqjscWlG4giWIaEofAqX71iJQsYepIpGpaqrKpC/xNIf74XIGEkj2DpoL8x xx5k8At1L+hQR4xqd33l+040hFDoNOoeTinQCY4ZD6N0pVS9ji7Gx5sobcUzymF87Y8l KBUA== 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 c39si15677412jaf.12.2021.08.31.23.24.38; Tue, 31 Aug 2021 23:24:49 -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 S242126AbhIAFwO (ORCPT + 99 others); Wed, 1 Sep 2021 01:52:14 -0400 Received: from mx20.baidu.com ([111.202.115.85]:47954 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242047AbhIAFwO (ORCPT ); Wed, 1 Sep 2021 01:52:14 -0400 Received: from BC-Mail-Ex09.internal.baidu.com (unknown [172.31.51.49]) by Forcepoint Email with ESMTPS id 06AA0414B78033AAED2F; Wed, 1 Sep 2021 13:51:16 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex09.internal.baidu.com (172.31.51.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 1 Sep 2021 13:51:15 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 1 Sep 2021 13:51:15 +0800 From: Cai Huoqing To: CC: Philipp Zabel , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , , , Subject: [PATCH] media: coda: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 1 Sep 2021 13:51:08 +0800 Message-ID: <20210901055109.6529-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/media/platform/coda/imx-vdoa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/coda/imx-vdoa.c b/drivers/media/platform/coda/imx-vdoa.c index 8bc0d8371819..6996d4571e36 100644 --- a/drivers/media/platform/coda/imx-vdoa.c +++ b/drivers/media/platform/coda/imx-vdoa.c @@ -301,8 +301,7 @@ static int vdoa_probe(struct platform_device *pdev) return PTR_ERR(vdoa->vdoa_clk); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - vdoa->regs = devm_ioremap_resource(vdoa->dev, res); + vdoa->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(vdoa->regs)) return PTR_ERR(vdoa->regs); -- 2.25.1