From patchwork Fri Apr 21 08:49:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 86187 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp921131vqo; Fri, 21 Apr 2023 01:58:42 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1WavJMP2FSEKmk7O9dlyGVDpofriVeVub3Hbx/Rmi+GGG+ZG2aTcwxDu/ym4b8LuCIary X-Received: by 2002:a17:902:e88d:b0:1a6:b4b6:af62 with SMTP id w13-20020a170902e88d00b001a6b4b6af62mr5440826plg.24.1682067522164; Fri, 21 Apr 2023 01:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682067522; cv=none; d=google.com; s=arc-20160816; b=FkFCc4DH5QJ2OJrI1tue7/2Kb375UkJW2xjudloWRCbhhtZSV0k7zKOrpCL6OI6i8F PM82OqY3HwlvxaGTV9CmglDe2r7u8QqRIcYbby5fuocijyvT72LNfDkw1JNleggusdA7 oP0VROnqydYen04VZS03okiqUHk9S7gBLRm+yTgDpNGGrXPp+gkLCV6WTu2gwOfnr0F4 gmGN70QMkVtSOJQFnAGvsk1KU3Lcs7lh3SlUovAv7PZFzYx9vmZeRWYerkEk7FL3uzjy leaOlLOgDhoMa9U65N0m7ODkLxCufJ+jr6Xw5o6usKNzJVqXROIxB0rSkMS9OZwzlMIU ldig== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902d50700b001a66bec3ceesi4628340plg.256.2023.04.21.01.58.29; Fri, 21 Apr 2023 01:58:42 -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 S230372AbjDUIuo (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763775634062467026?= X-GMAIL-MSGID: =?utf-8?q?1763775634062467026?= 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);