Message ID | 20230707072034.48977-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 v5csp3087377vqx; Fri, 7 Jul 2023 00:36:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+Wvp+5Ol9eydXkoG38LQ4EhFEhILVD2RQtj4UXg4wo4Yi4KbMr8X2MoJ4nax9m0qRcF2c X-Received: by 2002:a0d:d9c9:0:b0:56f:eaef:9d40 with SMTP id b192-20020a0dd9c9000000b0056feaef9d40mr5038109ywe.46.1688715409929; Fri, 07 Jul 2023 00:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715409; cv=pass; d=google.com; s=arc-20160816; b=xToWfrSAczXTnSWnQzwNREuSmUEsavhQ42l6A59ViGRSAjLY2bAaaq+hi5iNBUdvVt ei+ER8TIWwKZ3f1lA5gvuTkKjkzTGJsCDz38dAVk/yyLh+QqsJl43Mv1xZPXniTjrOf4 gJN5PJ9HfdnOxPwBIIH6jFv5XRDU0CPbQctkmD8lwbXtYZPdRwcc9C0m6zUXNGVhVJVX YAjEmXORZiHyKCqG8NA0XaVzYsfbsbW4WB49BBtYM6WKrJS/IlWBoz8Li+iKppfIy68R bloUpnOcNkuwJcmVrCNAVxwjHnwtBk7KqJihEAcyav3dhWBNYx8+zFXeedcbT/fyFwj4 vsmg== 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=G2MiaV/dC6hr1XiV++qdXDHKTm3kwizo22tMIUjTwIS3czXDyd+F0KNf+JrXtnM0zT /fao/R7UUo3fRs+fmV5+m9OOTAynhZdF7cCMb3N4MQeNU+XbWtyFrC23KrE6YRv4wH7c euTKD7dhylpA1k9F9ibkb6UDuXxr6DSqtkwbIAggwJ5i5/VYdBsqwXbSvpHgFGQ/6cL/ U2rMa+Ue88gdFdc3jG2RZC049pacKKNxAlxFz4IE8CWiR6/QCPGeeicHsOWlAanH+var PUxA7+5SzDKbNNX7+hIKQehtrm7mw3mc7hT/2E8H3NM50q7V05h69ejmLkQyaQ4WzZD8 /Yvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Zuoaf7K6; 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 b1-20020a6567c1000000b0055b635f28b6si3306748pgs.881.2023.07.07.00.36.37; Fri, 07 Jul 2023 00:36:49 -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=Zuoaf7K6; 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 S229559AbjGGHWO (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 03:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjGGHWM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 03:22:12 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1662127 for <linux-kernel@vger.kernel.org>; Fri, 7 Jul 2023 00:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b8SYpms0eE0wQzeYFU86HjeXyLgo512lB1o1zjh9IPzl0MCkMxZ13EMyrGQRbYm3Vq9Yljsp8C3JD266A7RnCBKeVdnt8oXH7f23JOYTZZY5B557VoWkb4xqc2GwiHjxTOugAlKuTO8KHi0DlSlYXC8iqNztlGiSN+eZYNz3h003cs1TeSIgCOKKbLHYu6H5dLOdwKJwfitW7AovMTorVIk1Tg8wezOH/cp/n6FCGRTfxiLdVdQhP7uRGejVD521EMK22vcEtK22IiODXroL7D7tOmI9iFLhE5ht/bQqdQDsKk+rhqGReRA3IjI4kPBECCvF0+b4ZroRfBSj1wB7tw== 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=boZZuaCKYMC7jko4n5R9LyU5sSN8Kq1cQ4TiuP4k6tSvMdO/Qfasn2y9rdz0ucw4gaiUqfhz3qF3KwPcVjV+VD2POmVKaaO2+WwAQzgEsmYN2q2JIs8FnmLpK4qyJ621+M7Eg9OtQL4i8rb2E38WRtlxCNZ/jQ9dcw0b7TLDP6H2TdmdBgcqIHOPWSiWkIgg+/CuaCIMxfsZsUXGNYba44RDAlHPlmgSyOD48R/sRTY6W2ZOYh7ZeNyCktjdVHmV4JqPh5w10nRV3X45Ykiw22KUgh7svCG1CNHa+VXAvbwr4OrG1NaNiPU5nDcGfPhtxnETcj4xnMiZjMTQ2J209Q== 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=Zuoaf7K6wsg3104peUm+C2d23q8dow4h4LXj03WWlYuPW78lK4YhfQSPur9plUIdviZqhyd0aPaPArcjcylTH7kRfa+hFpYoE3eiWS9SVi4rV6JdcGlmrSzVa058c03soXdl+itAXc4+JmqwwLQe0H3NkjMx3OSjPaTQUaynOQeg43r7v3tOPJ4cQgbpZnrWy6vvQKDz6U23L4dX80Fin33YXQ3kBtpDXkdKuH9UZAR785iaFRyllfGXcJf03GboY/UHi/r2LegcKGOq54jIUV3BrXVmuJnuYaRi1+S3UmZl/6/xZRXtiCSRDpa+fnYbxeUqnkRO1H/JmM1bJcdiqg== 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 SEZPR06MB5342.apcprd06.prod.outlook.com (2603:1096:101:7e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 07:21:08 +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.025; Fri, 7 Jul 2023 07:21:08 +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 10/18] drm: lcdif: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:26 +0800 Message-Id: <20230707072034.48977-10-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707072034.48977-1-frank.li@vivo.com> References: <20230707072034.48977-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5342:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bd27bfb-7e27-4a0c-afa1-08db7ebabbd6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lgtqNS7NRiP4yRGlMAKXeyJ+Yfj5lz3bAVCCPJ6ivUa6LMyQ3lYX2+AcuWePdJD7vhQ+wjEuCb1yf0eGbAWY+ADpf5e5h+HhciM8qpU77odsBd3PlwfuSol1H8ygwoMlo1Px9Proo1EUwK1vJvZxC/31RZ1EeEA3j661hGEzLxW1q0LZJMNPDcTAdvBdTEp72FJjYEYKGVjetX8HXZLjOt4Thl97qFgSvQHnwWtWhRWLUITIdC7FG2mZe5d7t+8XNWN3YqMFa8u9CT+6bKPnzWooqNvKf2Ur9AnDOAZQQH2oZ5n426bLH+Yn78ePlzfqyF04iCzos4wJV3bE/BijB3WHxiL1Qg+ePYuaGYdZFyLZPRD1dnPWMEF+NBLLotAH0qrMPt7a9Z2FN7Lcx8y9OLmDn4GjYBMJt3crF7Hxgt1kv85i8Bg7XRugrltXPy2nOBUqb9IaNb/bZINC3xDdNUb+EGz2HpSxopEyrvYA5krkied+vAlXwCQTWaFuFnp4yAOpiRw1Y/IDb9E9T0F6BxfUoK8vgDA6vJlumVrHNN/GWm8RopgqKUC4dYVPDP8lMry/1YOfgWpnDdwpCQ6uPpst/UVnJuJ8/b4D4bmYosQlAM4nWWXiyZXKJa+fFgec 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)(376002)(39860400002)(366004)(136003)(396003)(346002)(451199021)(41300700001)(5660300002)(110136005)(6486002)(4744005)(7416002)(316002)(2906002)(8676002)(8936002)(66476007)(66556008)(66946007)(36756003)(6512007)(478600001)(38350700002)(186003)(86362001)(2616005)(38100700002)(4326008)(83380400001)(6506007)(1076003)(26005)(52116002)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DUvkMgtRj6pE+An1OZ0YoXEaHd/T34sQdV4IAfLu8TXemGqIa/RbdW42QkKkBi3sCaMrPJW3L/640fwKJV77aGVM5peA0OVjyFiZzzIWFSNPhkwIZZKwVTYZ1ARbEhLtk96DqcTiGOl9bxKe45IRLGLa+ZOjtP0hayvU6qE4r2UelPr09LGE4wfjLQViEgnXD0lc6fcUIf3pxg5iBs1J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k0S1P3679etPw9Ds4rMcsgP60Je7j4fRMKTYp1I95awvrdgbjGCyKn1iMCPbUDaLGb3Hhxcw8Ox6gFtl3ppNB0pG7v2nYanCcRN1PPqN9CeGUv7wZZb7ti6Ev/E0Pl6D9IYd1EtyxUdTfr1g5CPbgAqvLiIi1pHnsasBtCXfbGWAj0s87mhiNcbmFQLOFNrBolTBSYjh4eveQqF0tZMh1pGg1sJwrLZB//eSUJvsS3nUgGLelhkgZBBu+IEk3MPCFqekzwhY9nEEjZTzSJ7DUU5ZW//QhrczEWwVzmPkDZnEK5Tben45Al8GJ0BPxzNGaMAcmvGWN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bd27bfb-7e27-4a0c-afa1-08db7ebabbd6 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 07:21:08.5510 (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: vpWEFGKu7wilBr7P+Psc+8Ej1N0b1/1HrkEHRQI1aeYxVSHZaNR5bYeH11/7qrKFZ+YqjXdxT6KejAY+RAT7wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5342 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746449552829326?= X-GMAIL-MSGID: =?utf-8?q?1770746449552829326?= |
Series |
[01/18] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 7:20 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);