Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1954245rwr; Fri, 21 Apr 2023 01:58:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bmd5beKRSMPR7TKD0YvsYDxtLt+FJIcDno1RzldrmVB+sHxuIh6HaYPRjoKAEeOaxSP14U X-Received: by 2002:a17:902:e542:b0:1a6:387a:6572 with SMTP id n2-20020a170902e54200b001a6387a6572mr5404236plf.13.1682067511306; Fri, 21 Apr 2023 01:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682067511; cv=none; d=google.com; s=arc-20160816; b=g3CPK1yH3ypdmLH8gSYxON9FCQ4o6Sz+vSkaiD8bbsUOAeCUCdOX/0KfnDYUsUbqBh c2SmyYkagj5R7EJUyPK4ZY8d1+n0msdJ0jLm5VcM9owRoeIF4KzkXUGghTDkbJdQVR+7 j+BXjFAVyEjPIUc2XTvbtXksgHjCCG7Ng4Y0lKvJ3vUiAr1aa7Ssv1tM0CYbThsIHDCV W8pLPNF5TndxD72LSRPiWcANm1II9t8zx8Xa7pX287D0VGEYjcZktoAc6t6EdeW/alif Qhw2y3NEZHcmXWyjU8NvuepFWVMN1L4eE0TXhRxRpRQljj0EAfE9+9Hxj8b1U87fju9m IW4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MeVzY68j8SrYsXndaE9wSRorjNQTkJv6rZafnZ6XNvk=; b=wfrcDJoa6r8ghgUPk8equVjg3ctWgqpPQdxRDPlwLXrjYiXO6TJ8fCgxM2sbZ7VSQu HE8Hc88omgH7DUHLDw4Pcb2f97azp9zNsBmsxcVWFAIuNCrNn7v0IuwtjtXHoTKezvl9 +E9976BaVuskl1LlQEy1h5rfWd826oRwpMuY9HJfK4J9c217ymlE3RgxLgIjkuYd0XP9 LoW7CWigdlmTgKg7Jwp270w/oz4DwB8zVd/HtsgAZxUTfP0RhO2zhTexhqsuTFaYn9+f Pq/Dnss9bk05b5y48J558cq5bmTtriZXjUk7zyDhE3OBxlhnL23dprSdUQ8XAd6RlCUf tOPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a17090341c900b0019f0e7990e8si4407350ple.197.2023.04.21.01.58.19; Fri, 21 Apr 2023 01:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230335AbjDUIuo (ORCPT + 99 others); Fri, 21 Apr 2023 04:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbjDUIuK (ORCPT ); Fri, 21 Apr 2023 04:50:10 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2101693FA; Fri, 21 Apr 2023 01:49:57 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R281e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VgcHKjy_1682066993; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VgcHKjy_1682066993) by smtp.aliyun-inc.com; Fri, 21 Apr 2023 16:49:54 +0800 From: Yang Li To: thierry.reding@gmail.com Cc: mperttunen@nvidia.com, airlied@gmail.com, daniel@ffwll.ch, jonathanh@nvidia.com, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] drm/tegra: dpaux: Use devm_platform_ioremap_resource() Date: Fri, 21 Apr 2023 16:49:52 +0800 Message-Id: <20230421084952.45275-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert platform_get_resource(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/gpu/drm/tegra/dpaux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4d2677dcd831..4699def04190 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -447,7 +447,6 @@ static const struct pinmux_ops tegra_dpaux_pinmux_ops = { static int tegra_dpaux_probe(struct platform_device *pdev) { struct tegra_dpaux *dpaux; - struct resource *regs; u32 value; int err; @@ -461,8 +460,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) INIT_LIST_HEAD(&dpaux->list); dpaux->dev = &pdev->dev; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dpaux->regs = devm_ioremap_resource(&pdev->dev, regs); + dpaux->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dpaux->regs)) return PTR_ERR(dpaux->regs); -- 2.20.1.7.g153144c