Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34798245rwd; Sun, 9 Jul 2023 20:53:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlH3znOlcaSGqManObU5oY2MUswJA8Aeu9umcZYmfY2Nf6ugcylGIm2QM9+dhX2qOvTOViMy X-Received: by 2002:a05:6870:3911:b0:1b3:5667:5e44 with SMTP id b17-20020a056870391100b001b356675e44mr11907248oap.28.1688961223325; Sun, 09 Jul 2023 20:53:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961223; cv=pass; d=google.com; s=arc-20160816; b=UtsdSIH3NQ0MfkiRHei28BWGez/SLcI1UYmv1DlGeULIxcy3pdc8wK61f1Yk2EEI/l 64PlsJbiif9elFsPe9gaOecSpVxr4H7Tl3QGSGMBG+Gk4jjoUNGmjufjxT+7+3lITpMf iWPrl5tR0ZYM/vw4MFERUT1LraHEq9H1w5yhdOCWWiweZK/qV5G7lzwddmEc+CdLIr0E BE3laYcx3RkdWnErQGr5v2lqOyLnQWR18Cf1r1a7WIDn/wR3V2WQspnliMTcfWZHZChl FbQPv0LTNK/o7mLzoru8s4kW/LSA6xXGgoWwciSg74wJWKrhiZG/6gOjXD1VP/Ri4iZl 7gFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; fh=Oh/HOE0AiPxeKVXP0lvD0UnG5r2/XcF4myx1pA2e5lg=; b=XdOMOGnKdt6idk+2rHh7F/+YNyJbQPxdUhMDlJ9ECmE84T2nQTGnQidP9OhwqHT0k3 xGCL9e6k8bVzrkdCzRutkMjnpVkI/us99+gvS6bpMEAp5ueGgbYOJGjwRZg0Fl0enc0l AgE4LmqnPqon7i9S+OwW8SQ3yDDI1T9OVVFc1lTV+R641Yg/Zz78+MzxtA2yOTKuwhU0 2gCuSSZQyPT/DeYG+GGzJyOH9lcs70Ui82Ve13EwaixHZJbfiUmK9pZMl4G2kpOULQ3o +gDLq/0FJy1A+hWUAMnsq6ZwUqRLzFr1Wng6jqHbnxoIvPrQjCY8EtGwXRIATo/I3KaR lajg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Jq8jIvWf; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q91-20020a17090a756400b00263d122a519si6584868pjk.34.2023.07.09.20.53.31; Sun, 09 Jul 2023 20:53:43 -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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Jq8jIvWf; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbjGJDYX (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjGJDYT (ORCPT ); Sun, 9 Jul 2023 23:24:19 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AFF1AB for ; Sun, 9 Jul 2023 20:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TR1JtZIo5R6dUkLRH8KKfx1N5KSmY/Nfl72/i+gqgRKlkp7q9J95U2CUzAYM8HsSQ0psFge9kZas60ukJjlz9ZcaGvaF1TrbIYypyrUrbBvZRhRAuwWjcDcaHRzSTSnRgyK8nbohV9U/vvRfBTb1OjBXMb1FRblNRHMPratr3RwOC3iUSxRBecIVApyF2mFZI0qIkB/nwFiidQwXmc3NnYCpjXN97ML/9cGsfTPtEOwaRmGo73CIsW+dIQE2pnkgEUBGPHyuQJLFEe/HcrGBc9SBnKQK0NdiA+I3aKf8wC4hwEzr/dd1JkJk20/eH6bMfT9XqA8ybyuIF8HkYgErJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=lMgpGuQwoe+6OuXclMggOk5HQKqAU5RCp9XhOU0Lq/8KvmFb31ZycuKwrKCznbd4BRGuA1KVfgfEqIc2zWphIbycElKJnn4U9c3cvHwdife08C518RylFczbHCRlK0+ZXbZu+YIZIhPkME63JXBhBdkAunL5A423XneLu6ZWYJ9wY8aVKj5AKCwo3u/Uu+OSgOCxpgQVanODR15r5l+P8HSbWHfplKMkfh86j6Fv0m/SdAcJgjxBfd6HvXU1Fuwr+jktzMZNA3r1NHY5fNAZkwQBIUaMhTRS2rbKH4laJ5hovZ5jFnGy4/agDLI0l77mjmTSXDe8fxPVWvjBKvMmYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=Jq8jIvWfMx/prH1NRUWKxFeYusmNnQ/L8BUlkcxfr9OCRrkoo0dqq2gvGYLcvVmX9UByQFauCNnBNvwcVKzVDMo6ZroL70RVR5xZLLuD0HRRax+jHFjvBQYmm01cWCJL3vATGQdbOuBkv5vDAuY4Y29m3jGcY6rhrj1gyG/fpPtQStu4WGg5deg9rRNAb7SnA8XrdC487ZKk4VpK85/pmfQZxxw7enzlVuU+56ipgYK5glJbisySNhHoYi2fZB7qssoP7+2pLFQHj2AskR+qNIoXtNVpd+MId8c75nZNT/WgPuCqba5k2JGG4QjAEPincMteCcwNWwP6c/sI5GLDKw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB5376.apcprd06.prod.outlook.com (2603:1096:101:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.29; Mon, 10 Jul 2023 03:24:14 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 03:24:14 +0000 From: Yangtao Li To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/19] drm/rockchip: dsi: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:39 +0800 Message-Id: <20230710032355.72914-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710032355.72914-1-frank.li@vivo.com> References: <20230710032355.72914-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5376:EE_ X-MS-Office365-Filtering-Correlation-Id: b9b0c196-5ec2-4bfc-5aa7-08db80f52308 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MbBUmsKHKP6IGMKfoLaXU9r9fgiVZzjJ7fsoO2o2xYVfScIl/1cXfXwXtcoXBa5tESfQM2oU0qWpPyzbQXEaUkzUrr5eXtMgP8ohoUQjPVTILoIZ336uAjrYY4kvFNXfI1bIr1Q4BfnsC5OSFfMZlOBBL2wI2Fi59aV2RruunXRWqwTih7Gv2Qvy0GaqkPT6+Bjy1fWCjvBseCRhM/lYR0Jg82FIJcpj5a3wnJHQp4LjqRhuBxnb02ikEOlls9Wgbb06m4vFRvQUjJa97GEBt9+4aOFbEsfBTqiN5dXy776I2/xtMoycg2d73ZgBBgbzL4TNzZC9rQ8ssuB7LUj/dSLlCsM4QwTjQj2nNs0TiNTIyz2k3MNYPc+2j2S3bCZ6eq3GyoF8IuB3qJGh1VY/40g5jASQ+2ru53FaJlaWleh2YHK+YWr8FgOnUsVKbBxtRRSalh0Ni/laiFXrhuxRfRxHjmTE7Ol2XDG/wwp8TlcHgWX1hPD0dQfgDYBc9wExZFvATzkNXrQprfFOCzU/hr8Wrb0EQjaYGADjKyxCYc1tiuZGrwfKIhOhQ6qOG/U3lyiZnWZaSHV4O6hfIr8K51iMwKpxDm45sH36NJZsCBEFFzTFXR/b3RYsyer2UGA0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(39860400002)(376002)(366004)(136003)(451199021)(6506007)(1076003)(5660300002)(26005)(478600001)(6512007)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?9yuDcHdFhIBaVrFavN9+cDhtDhQC99K6g2AU8kZJiIHSD2i62bPVw5cOrt4l?= =?us-ascii?Q?GcPNqhZmcQpqFKkyK3INIV9u1XM6nGPwmCavyyFfpNN2Z0XrCGeydzbkpZvB?= =?us-ascii?Q?LFT7Exuy+O+BrWffa+/U3yUiBPR4u0+DDXUsQqi72gqY8QPwztqzDtQ/Fkcz?= =?us-ascii?Q?V/YF685IfXI6f0nMMuILnYkFz+A2gfGA0fVSbFXTZYIg6QBmTBDVxFHeAXSB?= =?us-ascii?Q?RSs0Rwpkw882pP2PCgot5ciluZN8vTUSZsskRajPzctc4h2qfKAWHswB1UiS?= =?us-ascii?Q?dnzLPsQtTs96ibUBR5lqemSb2Llxis6bJt1wj4+da6rkv1QQc//6NXZqUOZ3?= =?us-ascii?Q?HmatZdWHAgHeN4FQG/Z3Hx+z5tp7g/AKIWcMK3+XXJprU9daV3h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RxQAYLR4i79kR33nxXG2W3PcMa7?= =?us-ascii?Q?irIcAxGeVGWob01ZStWZoneasFvhZbrsYWEJBjCTJJZBvB/LX0IHionmTnNi?= =?us-ascii?Q?FgH3zPQ5ouYULttRrNwwyJbabGnI3oHBsPeFxnG+scWOogVUpCV62mhB88GP?= =?us-ascii?Q?dEyXtnw25+nQtZuSLDpYyyN66rCPpRv75qDDWSWMNIKOnASpGGZLAB9+8bnc?= =?us-ascii?Q?LyiYqnp/qWPV8I0SXq8TOPuVl+vmFr9pPbwYAb+63XfqRknzJi7MCap78uNk?= =?us-ascii?Q?PAvsmzM2OI1p/aqHOgbEBnqKtxZxEWKIgOpceOEQ?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9b0c196-5ec2-4bfc-5aa7-08db80f52308 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 03:24:14.8177 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yYaAknh+kiV9no3n2bklNcwP1NMjD7CD02zXqcT3qiFRmkLHZ4Zh2q0GZuAnJkZhJc9N4gkgDO7QrkJScKOrXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5376 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 917e79951aac..ab57df7c6eab 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1351,8 +1351,7 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) if (!dsi) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->base = devm_ioremap_resource(dev, res); + dsi->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(dsi->base)) { DRM_DEV_ERROR(dev, "Unable to get dsi registers\n"); return PTR_ERR(dsi->base); -- 2.39.0