Message ID | 20230710032355.72914-10-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4753481vqx; Sun, 9 Jul 2023 20:37:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlEeDXVKHXRgdJSgtBcR2ycnMDhw/GcAHzju+KSPo336lkq/ZPeEL+ha9/GmmJ1SYq4RsVQr X-Received: by 2002:a05:6871:411:b0:1b0:3e54:946 with SMTP id d17-20020a056871041100b001b03e540946mr16067385oag.50.1688960251369; Sun, 09 Jul 2023 20:37:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960251; cv=pass; d=google.com; s=arc-20160816; b=Po8CeWSd8MbtMV9QeO/n3xwjfrFLLstpqkvWBmj2huqg49qDZJZJDtUXdYwoUGOTtO Qksf0nNk8NWo7SxFFgVg6UBAS1AdoLvDGkIkiWwtg0SGeYAwrHwU/8aWlaRiqjBwdFov /pc8TjRZFBrbClMluiSKYMxyk46cDPqREIAK3it6BbRWtOhbMmoKqpxG5ft7n8M9yFC3 WCxZEUovtlVrdDex2bk9viQ71xoLXLvnCrPjJ2Ow5wr3tGJeYcID1vJO0wAZjA541y0a T6NApKPQ7VW+H4E136JIE9mdvOzHGYkd0EK5AIoBgYbOyCHWhWh/E4/52niTGMU2R0qg F/XQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h124-20020a636c82000000b0055764ab9ea8si8090008pgc.732.2023.07.09.20.37.16; Sun, 09 Jul 2023 20:37: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; 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 S230168AbjGJDZc (ORCPT <rfc822;ybw1215001957@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <frank.li@vivo.com> To: Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: Yangtao Li <frank.li@vivo.com>, 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: aJB87qgIZ4/TyBNBx2ZyQd4eaENTmlbZyv6jQmvv/zRd8O7glt5kho2dIOpWzxNFOe5FZgRr5zz1aM0uyyUeTymEPcTkCjcPtjARwqlDZDwODB9ogpo9Id2OFDuf/cqUOvisCuC7lRlsB28ypzJlMRFUsDyqUiBfw3LzF6ajL0MIupuZKvlg8q+qIsGsBzvW3I0tgmGJChFZoh7ZX5/AyOOI3kku2hnTEfm7GSXJVwev70WwMk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asp+kcowxegC2uSkvImavynd7+YOTFJpTruRsz0gc9kc9ZVn8UKO+aqanJmNfudCfjz6moBqiTlwOYbG0hXBLTRZp32bZcG0cln07HNaFtIDW7gq8gVo6RYIDkv8d3nFzqQSO2tpldVtRQKdyS2ynpk3r4JM1FmJszNwLR4YuIYhta1cIYFVwmGzdXR3nRnzO8CdwHI7GBr5kmCq4pww9V0UOCFYzOfp9DPrSsfp8z9NFmCCZV7byFvJtbLrlsaMrQVDj2ewpymO552vFVpr1zKdf+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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003184314503767 X-GMAIL-MSGID: 1771003184314503767 |
Series |
[v2,01/19] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 3:23 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
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);