Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4508833pxb; Tue, 31 Aug 2021 06:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY/JRT8aaxWvFlIao8cfkJvmn/IRp6/vbOHWx7YYZAWZNxUu80CRAN6o7FHP9e2e9qnRgS X-Received: by 2002:a92:c542:: with SMTP id a2mr19434385ilj.191.1630418297974; Tue, 31 Aug 2021 06:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630418297; cv=none; d=google.com; s=arc-20160816; b=O2vYUEtkGVe6DyaMa1cq0FRJT5qeQGu6NcvZkl+R62RWZ1rdpmf4GLbf/4pWcEo96G XOso9rDOs4RhycKrN7xwaBh4VfFcXff0v4TGLw0i4A9Fc+cPJC2TK7CnHa0Mr9XXsQQE 6PYA/E3IiprUo9AXRQW+2y1dVoAgCeVALmORcE1hcQOPAtnOajbfwy9iHc+KQEDIW5F2 j3LyVrNm2MeWa98awmyAGpKRmCQwSN9eyF5JgJgojpqhJoEXnOu7SXPeq3R3x509u/lx nbAFDxU6rhjm/98ZfjFcOYdGmnxX6vutLhHim7EEvLpUHk6rtew8FEOwlLUsNvd5xfmT cirQ== 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=QD2hSurIM36vhquUiIqb9R3ZZyMy7M7e//MS/pxevMs=; b=frFrKrrMGhfqNYB+u+YqM32C+0aAMBJMD1jRi8h0Jur+jDlIIyZVbyWkbSDwzYs8aV an/VTpbL8eQlhP8dR5mHtbjl7/jd6HqWbKV7csbydmBCNjI8IOEjRk7fvwdrv3uBlYWF ivVVwFtaBmh2fX91X2HUfTW/wPp9UQdK0N1opxCm+q1ajschtEyKwHwyub6UIWtK3zJ8 JJsR+r0uBkVfGzUkOApWLytBq5ilqSjC7biYI/miQlwnYxlhzxTVYnar+No5RtELA5Zu lV+lIhAWI2OjKBq//EJjmwqjLHIX2wdh/yHnRPunbqWjIDcSDDvA7WD4vZGdbVAqSYRg NDpA== 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 l8si16713111ilt.110.2021.08.31.06.58.04; Tue, 31 Aug 2021 06:58:17 -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 S233455AbhHaN46 (ORCPT + 99 others); Tue, 31 Aug 2021 09:56:58 -0400 Received: from mx20.baidu.com ([111.202.115.85]:59528 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230288AbhHaN45 (ORCPT ); Tue, 31 Aug 2021 09:56:57 -0400 Received: from BC-Mail-HQEx02.internal.baidu.com (unknown [172.31.51.58]) by Forcepoint Email with ESMTPS id 92059BDE2327039EDFA8; Tue, 31 Aug 2021 21:56:00 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-HQEx02.internal.baidu.com (172.31.51.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 31 Aug 2021 21:56:00 +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; Tue, 31 Aug 2021 21:55:59 +0800 From: Cai Huoqing To: CC: Philipp Zabel , David Airlie , Daniel Vetter , Shawn Guo , "Sascha Hauer" , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , , , Subject: [PATCH] drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 31 Aug 2021 21:55:52 +0800 Message-ID: <20210831135553.4426-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: BC-Mail-Ex30.internal.baidu.com (172.31.51.24) 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/gpu/drm/imx/imx-tve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index bc8c3f802a15..2b1fdf2cbbce 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c @@ -526,7 +526,6 @@ static int imx_tve_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; struct device_node *ddc_node; struct imx_tve *tve; - struct resource *res; void __iomem *base; unsigned int val; int irq; @@ -568,8 +567,7 @@ static int imx_tve_probe(struct platform_device *pdev) } } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1