Message ID | 20230707072034.48977-18-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 v5csp3086348vqx; Fri, 7 Jul 2023 00:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwcnGcUkYPjkDITstCBZ7AK5n5Vf5Bhu16asUIqlrMszeHxThkDhOd0TsiVHlnXJEq2tbg X-Received: by 2002:a17:90a:e996:b0:260:fe48:491f with SMTP id v22-20020a17090ae99600b00260fe48491fmr3191644pjy.45.1688715251385; Fri, 07 Jul 2023 00:34:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715251; cv=pass; d=google.com; s=arc-20160816; b=F0O5PEt153wSrjqTtphNXkvoT9CM61e9suoowmlKRfp6C83Cc9niDBFvpUjb0wriUq gKy9H9vGob9ftjGbVLAwzKO7BFf4AjLyplEYCbAlBEvM5wW2M/P6XxVbwfbaCfy9U5Nv KSuxmJB3SL76ambOXTN7hlNoayhanaX4J45yCOz+NCdRwEsUU8Wxwv7ZAPutGSflU8To Rpmt22AZlhiLbhcevBHKUoIRiQPF4/vI7AsypJO+2mrN/wzV0udccT+g3B/cTn+eEKjH 61bVrHydlMV+va2YYEaZ0QL5igxMYjALZSksv7Gto3IBFdJIKfeSiNbZdhSw/XIJ2mjT kVng== 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=U3ihA1UcB747ikceE/8mzq2KJn0Fym1nlNxaPMM40SWmDOQZ4vUc6wiDjSrXbbF/OR mqeH+nfmQmf1CzndAQ/pcl7VpE9Sz10NhPWbUg2D/VY3ewoo5YP3FPeqSmyYdRJ8kc5e sO2l2FK6TBsr69KLZvRT2pgq0jJcJelzuO+10PDZWmpyipk7bXXSzQ0mw1v2Yj9Hj2k2 uhmxve/KE+7B2QHHHhChuLOdkcIeL2QblIeKYw1aQjxXTf0EbMWwwX2ON6q2d/rA8h+C 0Q6cMe4tSAPFCrHH2/cxJzVabkRzb9mEMvMWJizP80Rd5sfhhUnVJelZDWMgSr+3C+5r tpfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=DQsdHnyI; 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 o9-20020a17090a420900b002634977e6e7si1400415pjg.102.2023.07.07.00.33.54; Fri, 07 Jul 2023 00:34:11 -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=DQsdHnyI; 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 S232073AbjGGHXE (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 03:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbjGGHWu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 03:22:50 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2070c.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::70c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DECE92130 for <linux-kernel@vger.kernel.org>; Fri, 7 Jul 2023 00:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYz9VGMDLWxBZskdistyB+tllr/YoidQVivr+iRcQJqLpvzrmM3F9VT3HQVt6kn2Dg/VYLIo/EvwmEEXHyfOz4205/YChfuPA7cvd/9il2vLOob8FYJcn/DR2JIGVI9ZFIj4l8MlzIjU1eA7vsJDQWVC/IANTfSOekvJOBPUo4SrXWl6bBEcNTlztCpiP4cRmOZaAFHJK5nIkqDQEHbLQMvvNRuuG34NwlTBTljYCY5h2UNiofGtAR5Ikr+EuzNvxtyg6+XSdJ3dM4+tKuC2LJ5dXAdpnJfTsyF7ched/ZthBW+UqzbgiyLVopex8JSg3KkmUNi2f2Ig7AIlAMDcTA== 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=OIUlknIregq6vvkTMAv2S4wHVtcC8o9kBS2AUXDxOb71MDlt598/7cQWhPwf0yLQDhoVGSTp/aR+njv7QCAsNvo9M1AyEgKH7SSRGauFskh61t3PzUNqn0zV9ureEBj0LqZX5eURzQA0N/QLW90LDagAmZ+q/5qO2VfDp5ocHn6zsVt1OZkcCvv7y85wI5HlxBkhWZGVYlaUhhj0n5E2ZoNhPkCjML0gefYWDmiVR1TmdTncpHkYWWiIBg1n4HtAkgCG/XfIVrKYLuklH+aTa7F9b6Z6nWX7sKVpEmNcMGmybCNJOhynxOdyTCkECJD6RMjqwBc3qUThcpHLrxqtOQ== 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=DQsdHnyIIGwp/Dxfi7ROvl8TIUIMcif3C4g/vfE7EXYOsTwaYYAtfUsJItYVQ8spnUsXYUWm2bxfHryvIg0d7f34NYs4+8SwY3vlgJZGhjDO8F705cZ5Zy+44P9zTlpOHoyi/Y/8MeeXkhB9TdDv5BhB++w67GwWBFDUb64luNWJwR7CTzyrOyvfGhQhFXRkxS9Vu1o3dyB0sa4lj+32WkR7nXJphhU8rIEeXjvAA9MnGTUAlSvx3p7uiXglItm3a+seDFO47pz7/od50YnUvGpsHXeh/ylpXo6/zGCPNdRoSM2FnvIYhFjW0xrc48Z+Kx+uSDB9iKETSzVkyodt8w== 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 SEZPR06MB6743.apcprd06.prod.outlook.com (2603:1096:101:17a::12) 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:42 +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:42 +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 18/18] drm/fsl-dcu: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:34 +0800 Message-Id: <20230707072034.48977-18-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_|SEZPR06MB6743:EE_ X-MS-Office365-Filtering-Correlation-Id: 9152a4a4-2205-4fd8-06bd-08db7ebacfcb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4zJkFZ44bgDgJbkrb4Z/ufK9oKq90kjtCgwh1YeV9iVuWKAPqO7ePtbcRzUfq/u1TKgeCe9aR3JF1o85FCorxmxx+ZPLk3EH5e2JfnbFDQGYBgSMBhok3bgfNGi3RZY6iiHnnzB30e5FniIDi1LJOcI2zR2d+nkGxxhJXyvndWKq63N6WtKdJpFtLFnS8J9nPrpVrfjZTI0xUN1rSoJg5nMG4qbBeKF1Z/aRsaD8BA+92NRaduuhCfFnwfsgzUJG3YHD/7xaNz7CzNIf0ijxF2dwtxHYGaZr8Hj51wlLTYUrnWHKVJ+S86Di/xmb0Qx0aPVDIZCVq7oUybw1WaqQOd1Whll+Jc6jzz5xxecownO/Kb+YH8wid7VRe+3u1eeU5jOXaE74F1ST3RdnrRW5REeOBJ8t37ch6c/MDjeyFxKNETNEzOH2EobpQ2psQEePIgOiZBZQrdgE25MamHw/dFCahtxdtcaAG/ZhyrDlcqW3aShaQPnVANO8+MZoOCrndowCHeda9jbVKmmLdRF4YIHFBpghh351RWA5vZZiOGQnj2nRpjOb0VM5UiCLPP57YObdi6V9S0OgWD1rddlG8OEJzAHJ2I1//Aztm387pLQQSWMMVXF0dUMcEYCyYXTd 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)(39860400002)(366004)(376002)(136003)(346002)(451199021)(6512007)(6666004)(52116002)(6486002)(478600001)(110136005)(1076003)(186003)(26005)(6506007)(2906002)(66476007)(66946007)(4326008)(66556008)(8936002)(8676002)(5660300002)(41300700001)(38100700002)(38350700002)(36756003)(316002)(86362001)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /B1/Dvl+4ln7/XZI0SfZaYWz+xkfUusvIzFSPEX1JQ+PWimom5hlUiN+ZUviLeACaFRIdGgAvR8HTLSw6l1bt9ag2qc1mVrMznGwxl/f+/vbWl7Ngfm3lYrKHK3ENQqWBA/nzS6E7BWvRv1pAWlqY6HulR4dtzIy/7jzK2L2OQD3Sozb2AncRuc6GdY7ncz0PsX1PUMCQ/NUoMgAZfN+jGIoBbg5kBBhkBdYFGaXH3thmhupTWVweZY8C9TKYCrXXcFDCJjCq4Rw+xCe9iMJ4LLZr1zz2LFPmWCR+J4sOKdiriNWyULf9V+usuT5B4fSSGnqSI+JM7RYXMQmvApxLgLb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LwQQAiseNZ7v8iPNlYw4mlzLjatI/N1KyjZyCPfoJNIzv6Ls3de9B3lAMMvhmzhy2/BIr071kEeU5oEJfbA1hycw3CGDTbt2mJ+JwMycVsd85rrZVH5RCWl7NWKhvoit/GG2n3aA0CX9wRyltB70OLTjDP/LzsTd50iVWDbbS7vxYVeW4A2pW+uW7M8j15Iy X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9152a4a4-2205-4fd8-06bd-08db7ebacfcb 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:42.0492 (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: zYpnUZ8OH2EnMN6JjolYHsULkgY5jXC9nG8Lb44G/5ztF/y+leZCdA3VjZMw+4pIh6qzhLb87lDse/RVu28QBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6743 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1770746283710796082?= X-GMAIL-MSGID: =?utf-8?q?1770746283710796082?= |
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/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;