From patchwork Wed Feb 8 07:41:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye.xingchen@zte.com.cn X-Patchwork-Id: 54251 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3318699wrn; Tue, 7 Feb 2023 23:51:09 -0800 (PST) X-Google-Smtp-Source: AK7set8J6CKgKgtR9Aecwb1fmHjU31Bxt9JdR7W/tS5NymDOH6iB4e82IrdxigdXMCLqE46wQQj9 X-Received: by 2002:a05:6a20:3ca6:b0:bf:9f83:2374 with SMTP id b38-20020a056a203ca600b000bf9f832374mr7828214pzj.52.1675842669390; Tue, 07 Feb 2023 23:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675842669; cv=none; d=google.com; s=arc-20160816; b=0PjRiWkYE7BAMP1FDa1776q9VW3mPU4xQkXX8ZlF6EwOOBCT9utNyFBBtUZj1Sm6Ds 3Tgk8VcW8Sl8PyCwemrLI1F/ZgMfpK4Gd8CmcQIO0GqmM2qSh5Y0wiDzVpGe6ySIErHL qBATF8dGoGWScecG7VGkxqA1ouijS4YXb4K/qUE/9MrAkF1a3thvfXpp8vstR5JLMaD9 +DouckVWlTHw55ANnqDkv3UQLEv5KqZMqvgaxO0E8OskPXZaUFWeUeTM9ZjuyI9UzhjA HXVIfkm+14UygO+CTTd5kdp7FgryE2fiOaGuPW4Pr5C7D6CewIzk4ON+FiQ/K3f65S9B XakQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=YV6dhL6q6qgNHXbiWc3z01qem6587fLdHL9X5np2f5c=; b=UUHTyl+bUukc0LxL4EW9R49pZgdezGcfn6qKSrDOCEKxwd/QpYrR9gd52AWdpVYSqA 2C0MtzR3wlEx9HCNcGRuRPB4oMH+sU2jXlU5oZEmqaZWueatpqbXBZE/nDYi6aUvOc6b o4WdXBIqkZpn62qXFsSi0XEKIyjU/q8MMG7foSDd7fVw4U0reU2DjmA0QREGuArhfMll cVM+X4t/mEnZnwf96LMgX7eltEkE2thsBe/Y0p8TWT/RX6jp9PbTWExmGR4yoR2ZcLod s2RXyx8D+uCVx8LoFBKAolnRiPpxoGlfl89ap+arYTRB80jNPFMSX6c3+KksNXI2sAdY vufg== 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=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e124-20020a636982000000b004fad31323f4si658998pgc.270.2023.02.07.23.50.56; Tue, 07 Feb 2023 23:51:09 -0800 (PST) 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=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbjBHHmO (ORCPT + 99 others); Wed, 8 Feb 2023 02:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbjBHHmM (ORCPT ); Wed, 8 Feb 2023 02:42:12 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6905B97; Tue, 7 Feb 2023 23:42:09 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4PBX594wBnz4xq27; Wed, 8 Feb 2023 15:42:05 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.99.176]) by mse-fl1.zte.com.cn with SMTP id 3187fsPq028878; Wed, 8 Feb 2023 15:41:54 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Wed, 8 Feb 2023 15:41:56 +0800 (CST) Date: Wed, 8 Feb 2023 15:41:56 +0800 (CST) X-Zmail-TransId: 2af963e35244ffffffffc8658eb3 X-Mailer: Zmail v1.0 Message-ID: <202302081541565850181@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?utf-8?b?W1BBVENIXSBncHU6IGhvc3QxeDogbWlwaTogdXNlwqBkZXZtX3BsYXRm?= =?utf-8?b?b3JtX2dldF9hbmRfaW9yZW1hcF9yZXNvdXJjZSgp?= X-MAIL: mse-fl1.zte.com.cn 3187fsPq028878 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 63E3524D.000/4PBX594wBnz4xq27 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY 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?1757248402676423470?= X-GMAIL-MSGID: =?utf-8?q?1757248402676423470?= From: Ye Xingchen Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/gpu/host1x/mipi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/host1x/mipi.c b/drivers/gpu/host1x/mipi.c index 2efe12dde8bc..4dcec535ec21 100644 --- a/drivers/gpu/host1x/mipi.c +++ b/drivers/gpu/host1x/mipi.c @@ -501,7 +501,6 @@ static int tegra_mipi_probe(struct platform_device *pdev) { const struct of_device_id *match; struct tegra_mipi *mipi; - struct resource *res; int err; match = of_match_node(tegra_mipi_of_match, pdev->dev.of_node); @@ -515,8 +514,7 @@ static int tegra_mipi_probe(struct platform_device *pdev) mipi->soc = match->data; mipi->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mipi->regs = devm_ioremap_resource(&pdev->dev, res); + mipi->regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(mipi->regs)) return PTR_ERR(mipi->regs);