Message ID | 20230710032355.72914-19-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 v5csp4753531vqx; Sun, 9 Jul 2023 20:37:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuiYTYqD69j5mKF0pRjcxhFb3odDhawuS+n2pZVdlN2CyYrjbhDT0eX8Ry6hUfdy5oZ2Ig X-Received: by 2002:a17:902:cecf:b0:1b6:93e8:3ddb with SMTP id d15-20020a170902cecf00b001b693e83ddbmr10612107plg.6.1688960262021; Sun, 09 Jul 2023 20:37:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960262; cv=pass; d=google.com; s=arc-20160816; b=TWGUYpeBdV7DGKUbXqDe7uvp4ivSct2lB5Vr5JBTjqNxieM54kyVdtwxPKA70+QC/p JTh25WQPwHlLLCXWU1Kg4d4fdaKX6asjTbwpQPDzkJ8pOJPsE7h//Ac3cN7Rdmn2ylO+ 7tnXkq4TD504bSp3nGGOoBn+KiddSC2J7ia7ZItD+zMmLTu66HK7uABFkwEQ3nyyCNHh iVVz8kGU8SUG9R27QcTgIywtLTxErbBbgppkCcgMW9hM9+x0vOfug7McyLuWcDGHf1ry DyQGOAoYr79amX8R6roImUeliFbH6C2VXjO8mpSNfZX6pEZXLd+FO3H6ba4tE7AQwgp9 QEAw== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; fh=z98lbnYGpSKysaQg98nPfojwuOjelzSmnN/fQ4itCcM=; b=ZazujRFIZHo54+OFtlnunYyRbbabG6hDzqD6FinH4dLkcJbbOSOdu6IK6+rI3W7AW1 pQGtFrrd8dpQRPlxzr5WLsswHVml1jJyzNe5QnOPRfO6sTzotRof3CtL8oERANXKz1Or xzcO72I6KSaJY5KxZzFOUonM2OepLy5/I1Wc5IqJueCsSVwnfYnUbNBnTNOPaevVN6JK skwLGztNCgpl6LEWDRUDKY6Edt3bolVZ/edfgfvLuH9NNr+iD28Y6n4tM+2p0sUYWk8N FwJ2X3Ga9kgGebNBxqiq+T0hsPzq8eYUVJrOmqv5Ms+/vYfPtQvz/fb1171zwrBwYeKF YumA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=c36GYxW0; 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 y10-20020a170902b48a00b001b8aef27731si7819972plr.46.2023.07.09.20.37.29; Sun, 09 Jul 2023 20:37:41 -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=c36GYxW0; 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 S230049AbjGJD2l (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjGJD2K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:28:10 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451E61BE8 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IENu3w50yYqw6W2Ztqrk50cFhaVYqS9bTjWzhl3qSH2yH4bkbZqT9MxyFKfbRIbpTkCVIR3reC5/mJF0sfnnaoVSwl1LFBzTKbC7zc7ahnrjGORvAR7EQZSc8oK6oWSlSU/JJhcivgE95FNdvZ5ZA1ybkpyFkMF8BQzQOoDclOxY7GSOWD47g8fZ6wHbYJflPXbbqgfEoAE+QETDljqXrrOeCm3ygbbq0vy5MpFrdNj1TYR5aepO7I827cO+0QQGJ5G4GgrR6/8VjlH1vktrhzrU5UMxBvsvYq4heyEa1E6WOjJ11GDVTxSlno6p8IvYrjDYQxd7SebSZLLBzJwBBA== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; b=DAojeakGq4Y0FdBo+oc64cMu1bQJOAsAcnmB6vHQmyN+rf2jDK1dGlnUK/Bbcjcq1pASaQjwF40VBz/XqNe3tAtx371zHQSWbv7XAQDEvt7/rumvasdpEgUersBFQ5wTbM7jdPmRkzP6pr9B+WH16s3hyim30VO5Za0x94DSall8iVlk0KEHXVp1LaisQ1OtkhRlv6NUVH8wNql0SyEa0yda1QkNcT/zwXFf26KllCTQQ/y7nysabd4I+bMFszMTRydMrlgO5WK9purOJp1Krec6EgslXfdi6Mj/NJ4kFFrkMLfoa3gOQ5racVSxoR47Dp9t5wvTVzBsFSVeloGl9Q== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; b=c36GYxW00TdwAMvixgmUpBwJZ+w3Yu+cqtODesIAOTVW1dthe6MVPALogat+NI6wXUOvcuYMcQbMCo8jybwW/p5qYQ7WW4v9MfrZsGhn/iy8IFWzoTwACR9t1bAX6A8ORKAebieHtDNmuDx3O70/tgVJp7bF5cUh1xWDRExBi2piSWb17++fhpR7pUaEvXbHQNmOvtV8MYognA9+K7PGfK3PkFTVXPKG3gIocJ0tB1m1YDQppJXNFBPRNt0wmykq3QIErt2QhC9Do3HyRSdb4V9Lm0x4fwvJKR+R5FAJoF62kPHpjFeevjdHXIT4afer9zotX2ihT18/wpjwNPP8Gg== 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:53 +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:53 +0000 From: Yangtao Li <frank.li@vivo.com> To: Stefan Agner <stefan@agner.ch>, Alison Wang <alison.wang@nxp.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 19/19] drm/fsl-dcu: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:55 +0800 Message-Id: <20230710032355.72914-19-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: 3868ecb4-c47f-4e0b-4398-08db80f539fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CHCdqZQHvWZk/vvJNLsJtR7SL2o9BaHp1Zl5ARjL3b8oVDQTZLhneL5yJxBjF4coC7kIkKVEdet0Z3Ur1x969iape2lyF3HLD3MPh6JfjRuqZGVOnSrZD38WeGlOBsskAqD4JNoikCn9+SR0FqggrQkG/D+20PHn4n6UrDLpIRETppqxqGFFt36Aohhmzu0J9p88t5rbqLFLrgZoaK379g9BXhvvi/yl7S2n2Otf7gMp3Rt+7E3TWts1HXCMIV0Pg0gYq0cBQlZjXTNk9LMBORGkUj36jFtIUKaqd5aYxDBOQ+gWVBWNZaAzHJuj5iQMrUk6ORHvLehnKSiF0KjaxND2krIc5LiL2qhL1D5tA3FY03GIcyLvaSTiHn0MJIOiYT8lLiCbWPdfh5RPbJqPcWRxMQGTs6cPNGhJOJ21W5LKN7wXspSr4aYlEPTaNQExXMP/nSi5KcGIidhvszXD4Bxm3JW5bSZdBfsrgp6U+Kmi0L6MjQqTO1b1/s3cgp0EZqmk/whZeQTwN1ubfPFe+nO8aWpRM0i4qSvqer3iNCIU+IATKK2Im43h81sTMEoQpSwaWzptFE7wbesr3u3LKhbJLbac75kneeLJfuP2SdHBpMhN3rvEfzvHlnYwYypY 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)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aY6Tg7x0MZpdn+pOr9Hk4/aFxMA2qs0ivPDhAo7HfmctWlxmu7J6VbsVWTU9a/Lz5UXl3jf5N6W+aeQ6Z7b0Z0gwzXPrMq8BE/AtT1JKeeXsNE3B9ToWN8dj4nHIxKhZT77t1AfRR45sxVa+ztXkypG34tMri5uyle2lqM8xbJaAP6xZNRLv7YD0ljIg7KJOSvv0JTzQFHmve2uCg3FqeTAuFXx/gsV0fIOGWeyd7RCNc490rs3TAKERyYUkjhXsTa83dsUruUzv3a4+Udk9JQ9BG4ykZ26mvaIDhfDFJ6FeanKYhj9zi0S/81AwSU/73/vykxkjWtChxelK62MF0QuKIeWE1VBL7cj5AGK7Cfrp9W3T4V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i1h1YXOvosV7ksJaRG7P/qzyiP6PoKyB6WqnGwdNwF0sh9MpowRwqdJL8JzITQqGdbpz4QZu0iB664f47EGOMivB8xVYhy5MapDI7AQnWiv5n9+17DuYyuoCd+ow5a5BTEATuqZH/DryGUyuhrsGsNDYHPjTYS8ufjhLlr6kO X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3868ecb4-c47f-4e0b-4398-08db80f539fc 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:53.3353 (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: iESXSuJ5tH9zTJ28KL6CvvKAsZht5oBzQSSZ5CXcMi/bUlKfcwJ6N6crtX3fqpnkKVYThrW5DZxXGjvUYF+6eg== 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003195537260146 X-GMAIL-MSGID: 1771003195537260146 |
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/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index c09ba019ba5e..14661912e60f 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -246,7 +246,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) struct fsl_dcu_drm_device *fsl_dev; struct drm_device *drm; struct device *dev = &pdev->dev; - struct resource *res; void __iomem *base; struct clk *pix_clk_in; char pix_clk_name[32]; @@ -264,8 +263,7 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) return -ENODEV; fsl_dev->soc = id->data; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) { ret = PTR_ERR(base); return ret;