Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34783873rwd; Sun, 9 Jul 2023 20:34:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3HJkcs8z5KMqfrOHApSve+dZR4N1COfc0TNj5w5p9LjKKcw68PokgMPj8A3RYpSEl/MZD X-Received: by 2002:a05:6358:7248:b0:134:d4b6:1c47 with SMTP id i8-20020a056358724800b00134d4b61c47mr14434411rwa.22.1688960040679; Sun, 09 Jul 2023 20:34:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960040; cv=pass; d=google.com; s=arc-20160816; b=k3UaV2PPdy+JEI4ENuaEw4b5JRG23WiJzvS9Db/Ar4St0bRKU/DHdfiCgWjFFKBuU8 xb2i/H7IuREqMJyTh/ZbRS95VkSF9WgAyeffiFv9qx9ZKgjUxaVcI3FrZK6rSG4vVmoo TiDI23qYT/a02RP05+B/34L5/1hZjE7Q0qmxY907ETWuvLsayOOcYkxpMg6Cin0+LoiK SsxErRhVzv+DokBCvAxqAkjZTHBCTFaxsNGpHiCIvg0ZWuwGq6199E8uFs70GoBckyRw nM7EOh9Ckrm6RkQt3ycT4MMQJi2w5Dul2s5dwrIwCMrnif9DLzK6eDcC3BKDs77pT8kE rtDQ== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; fh=8CosaxLVmmTt7c6Jr6gOWS1rY8DbgZ3Z2abfOQKaM9o=; b=n0EROELBRpf+go1HH7hpacKnO6ZBaciwrhO1O7Ofba5//LgitXXMnDOmUObTIgbINU hqIXvpUs9lCQWn2a2IMARfvqG/dFf7XPWCctu77rYWYYEJi1cW09xD/TOwK56/OUQB37 C+z//8ZMkMnvzLFpJpg95sssSWod2hpwp3gsiRlZtD+m4WXIwlazXCvMP5qy4ZUkQkez 6dYgJwkNXy42gQdmrjGcTYdeEgmWeRlIu7aKk0qQ5bioscAfYYX7qH8O48QyfWcw+jIb zZSnYAMBmcdwa6sqQF9TRTK/SNcDt2fv0DqQkdfpMtvsEJYH7t0d7m6nrRNe8a8kVH6N 8g0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=btSXtlBw; 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 c11-20020a056a00248b00b0067dac801f59si2557251pfv.224.2023.07.09.20.33.48; Sun, 09 Jul 2023 20:34:00 -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=btSXtlBw; 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 S229925AbjGJDZc (ORCPT + 99 others); Sun, 9 Jul 2023 23:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJDZF (ORCPT ); Sun, 9 Jul 2023 23:25:05 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2116.outbound.protection.outlook.com [40.107.117.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A418E75 for ; Sun, 9 Jul 2023 20:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MwgMv+ZH+fXu/goOpmiTP6FF02I2XDteakznBqvcM5wHtnejkq3KaGe8UTm4rfT1PbeFk1VVn/QPsqQisf49zrfYgufwWfd6BCn9SJV3kEKOduSFM81itzUqRu0Ffz/Rz9LBvQyLGAPh3GUdJUkrZSSZM2cvrNA4V2xDcLHRVf7G6bfd48PLsWluxYum3C69kstLDqPlVswR7qGSn+xU2S2GruBtIqfbP5Kc+cNEVZKjCVop5WHObBe9Mwa2pulemXY7FaUbnouWRmqIe6wpbGf9PCbnSklhg4vg0yPLZDgPCRtQXcy3/HnepKDjJOIA4Ft/bR6RJs4Xd3NSS3dNJQ== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=NbtEviDzy5Zq7nHtQVj6h3CEyHndsiXeZveCcwf9VpAqsEGHLc3DPy0VemzRHRRpJlVPCKVXiHkUINzchQ4xPUmSeqWZISd6CiBqf3mn3SJeBqS0m2KYuds1Oz1iZ/9kfnPCea+FtQe9iJJaP7ycXgovHbgZ2/TgR3tHYLiMJEVNt/as3nsRoXd8Xdm2e/ul6PD704UkLfN3w9C23oX8ekZYcBtoYwSnugAAeAuTB3qv7Pph/u4AsZU1Z2nKQ604DBjMOH2t3oO7YLVNm60G5qco+WbZOBsxUU8nBlABBPjYxWExna84vm1VVY/ecxjg3Or+b8ePe3XeAJCW3OpseA== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=btSXtlBwIQgplP2+7/9oGmyR7qf93TSs6jehfmYS2I7KDB4l/p7EISIhfa2C79z+K84yRVbrQ/NCHcaOQr2FsdZhKJCcuRhPRd9SBZJDMix+F4IFRYEMyfRK3LsTWyYu5q/cosD/tFLqDGyj//Q4n9A5WIUDOCaxdBUqsIHPF/8ssJxy3V69PVhLJkV/+gW7QMiPaLQs/yQV394SbHl2yzzTx1brkMTjKhB8uNB/tfkkngakdCoJeC/GcLIv9K6dDoflG59bRDVcKyQ7xd7cMPKrJPwyYmh17Od8SPzViNuXVFDhK4n2C2TSDukUcXcJCNuhOkjKLsaFITX8el6ZBA== 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 TYSPR06MB6472.apcprd06.prod.outlook.com (2603:1096:400:47b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 03:24:32 +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:31 +0000 From: Yangtao Li To: Marek Vasut , Stefan Agner , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/19] drm: lcdif: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:46 +0800 Message-Id: <20230710032355.72914-10-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_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: 6110ff7a-af6f-44b1-2950-08db80f52d38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: alOvc9yLlp3nVXOxDjgmdhUxjDfxlR2+5egLX3dckItF9tcVUzhPILcfqNFdpzul+8203rta7ajvlqHjJc2BXj36P9a1MgJRREhKDk0qFhXAYyiaVNAHe9g70x/kFqZSpZ0Gi3IPg5WUFdDEjZdyv98zyGEhC9X7kKCL4S3MMMomvgd6DKJA05VJdzKxqoMmW/t497ZPQM8/k1JwKaRimSgmwJFcIgj7xUZgQCjLFYnpqlTrRtH1pYXIKZ/pelTX4idYpYxSA12xjpWXIG/LMJib8FGlBKWDuBJbA4v9KXBTMN1JSct1iEQzv9CCwHlLMwnbi/bWGCHFZRzacBTqxUKbo6HneKwvvNgZRBFEhEDnYacyvMLuxVklqNke1V5P7sj5I4hBf9OL3bI8+RC/TXFU92kIV3fAL1CizYNzgxbgEqNddWOyfLIkwqwa7b5Z+c7R6nWBuKYq45Ym4PBv2y23pcuf+YQ3tlgxaQuVTQqJeAFFsqbWN6g+MmruqAXqFXahGSQDGvVUP9NaRVI5riUElXgsfBNuC0J9S1oQEisyqq53usrQ0HGi/kwf+RTCpAow+7gqVPd1gNhpQ7AbDpUzmNMxupFQi/yryqgXBsXgjaz0wnRv2WHtsxuyddDw 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)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199021)(186003)(6506007)(26005)(1076003)(2616005)(6512007)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(7416002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?aJB87qgIZ4/TyBNBx2ZyQd4eaENTmlbZyv6jQmvv/zRd8O7glt5kho2dIOpW?= =?us-ascii?Q?zxNFOe5FZgRr5zz1aM0uyyUeTymEPcTkCjcPtjARwqlDZDwODB9ogpo9Id2O?= =?us-ascii?Q?FDuf/cqUOvisCuC7lRlsB28ypzJlMRFUsDyqUiBfw3LzF6ajL0MIupuZKvlg?= =?us-ascii?Q?8q+qIsGsBzvW3I0tgmGJChFZoh7ZX5/AyOOI3kku2hnTEfm7GSXJVwev70Ww?= =?us-ascii?Q?MkmX7SZUHQkWfpdk7aKKi5EYxUdx/rX4HwfmZwjZDREWp4U5NIin0f7+fBWR?= =?us-ascii?Q?j+kHZuRljOgh5pnOxw9XrrIRjBev3ezrdGPTCQJjmkDxU8LPVojeVdFY3OCj?= =?us-ascii?Q?63M8L2pxHrdrDfzOpsl/gJfgDh7IVVecuXPleNd4Iq7U256FRtpE5EJLVsXM?= =?us-ascii?Q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gQTe+Earz7uH3Kg0asp+kcowx?= =?us-ascii?Q?egC2uSkvImavynd7+YOTFJpTruRsz0gc9kc9ZVn8UKO+aqanJmNfudCfjz6m?= =?us-ascii?Q?oBqiTlwOYbG0hXBLTRZp32bZcG0cln07HNaFtIDW7gq8gVo6RYIDkv8d3nFz?= =?us-ascii?Q?qQSO2tpldVtRQKdyS2ynpk3r4JM1FmJszNwLR4YuIYhta1cIYFVwmGzdXR3n?= =?us-ascii?Q?RnzO8CdwHI7GBr5kmCq4pww9V0UOCFYzOfp9DPrSsfp8z9NFmCCZV7byFvJt?= =?us-ascii?Q?bLrlsaMrQVDj2ewpymO552vFVpr1zKdf+KWAcjgE?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6110ff7a-af6f-44b1-2950-08db80f52d38 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:31.9191 (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: FPSRk62lxOhiBsV7UxqGG9KIm2I5WJJrEesEfY4qXbeISUbhm2Fk2ZaFQ+NMl55rQjjjwkhydp0iuRXDTbd1fQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6472 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/mxsfb/lcdif_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c index c9d8cbb21407..a7cdd0eec7a2 100644 --- a/drivers/gpu/drm/mxsfb/lcdif_drv.c +++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c @@ -134,7 +134,6 @@ static int lcdif_load(struct drm_device *drm) { struct platform_device *pdev = to_platform_device(drm->dev); struct lcdif_drm_private *lcdif; - struct resource *res; int ret; lcdif = devm_kzalloc(&pdev->dev, sizeof(*lcdif), GFP_KERNEL); @@ -144,8 +143,7 @@ static int lcdif_load(struct drm_device *drm) lcdif->drm = drm; drm->dev_private = lcdif; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - lcdif->base = devm_ioremap_resource(drm->dev, res); + lcdif->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(lcdif->base)) return PTR_ERR(lcdif->base); -- 2.39.0