Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31543068rwd; Fri, 7 Jul 2023 00:28:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGKNBt0R3EyZp0G1XU9KUa4bGQSYcfeUcz54+NrJ8mrB6qFZtenQU0sJC76I3GEBRcl5XUn X-Received: by 2002:a17:903:1110:b0:1b8:4199:edfb with SMTP id n16-20020a170903111000b001b84199edfbmr3945446plh.25.1688714896664; Fri, 07 Jul 2023 00:28:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714896; cv=pass; d=google.com; s=arc-20160816; b=jBkTs5X67DcnPKv46Q8Jp8YyGOcJj01ETdNuXigTvp5vWdl2km71k4pPDU4TFMkTSu ZOme/GkTcjrtc1Zn4IrfqkgCmkXW0c1kL57O9b12ysy/KyYjSq7dYUnGRI2A+2YBkEbq VjQOOPkrqcecmtgQUf+bNb9iTZo3abNbHmqBD5meeQP3Su6a6tX5lgW9EsjMYzJeO9EB N+4FSCru7+8izP18N1CyGLvhTtLwiPTpL5+UTdNdv75hM6Qd2enzhKup/cAfJU9Z3Vxx eTYzxVbXnh/V5FfaD4Sz2SQtCakddy9/A6nceRMSQR2SXPthjlLUwBzdB8IgEiVF8Tzk vkKQ== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; fh=MV5E4wowCazqbcJaVtidHWlRfk4k3yRrOp8IlnZMeZA=; b=aceLwD9v+VHIrLZc3v72mQQNf2KZcDUyHGAKtZMgwrQKMLbgghhvkMIQl7dgHXUigD xtSk34GCi7lNTLfIOaygOPUqB3eRPz+w9GtsH5ryd5xsSPK1ln40z/f8hLyPHKaoot3J wCCT7FhA8mgaUcscPrjTTlc4qw0nCu7h8FggbPQEhW/NZCB92SZdeo365lGkdkpNUjD+ UBRcjUMKhabyjUZtFUz4c4assUWlDRCY3iIeXkSDIQdlswpjawbTjjlinyLc1XfegIYa 8EM1Aor/DISYlxOM7ct3QB4E5DpJukCgMELhfFtCRYEliXfE5Dz48hDmwiNjvX9N1lGZ R/DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=j86VmB4+; 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 jk21-20020a170903331500b001b556b0d0b7si2949522plb.480.2023.07.07.00.28.02; Fri, 07 Jul 2023 00:28:16 -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=j86VmB4+; 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 S231407AbjGGHVd (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjGGHVb (ORCPT ); Fri, 7 Jul 2023 03:21:31 -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 B6830269F for ; Fri, 7 Jul 2023 00:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q+hFb0Ejrf3W8ijpkO+2rV10LxQfZdQmx9V9ZR+fvEXkTPARts4W5yKsWQMrTYlDopLiUS7okX0j5NlOTBh6hS8NSfkyS/NXbRLgB8rASZ9n6WtJl27ht6Dyp70vgQgDJpa+61ogq+k42R3NNwjWuxXcA/W0ioxeBLwI8FkirJACCgs7Vg7o7ep/qLyEsiWo12P2YMJNubLF/Ptu+S0Q8NyYZiRu2nKuJeypOwYsvDvkmIGAn31ccjRpuZfvFWr7kpWgThPnwtppWRr8gXiAe/ZxrvQC2TnDC6h64LsK6O4kkvYXlmbnvq0pwhujtK2nTP7q+QSgssej23DG5k/B3A== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; b=JFZ/7c0akXdg6+SkQaBixlmRx7uTes52X1ipOo1ngONH0U6I0Z7EdQm3RtRn7rJPFcVmKYr4xKI2Wa6dIwjZR2vceS9gCDCMKQUznFbobybZ0egX+xwLntwcyyf6Qzjh/tYBfAcKkGCj6II0Dy65OVyg9cvxM5gQk3ecen1k8CXRjbSsahZUYEcrfo9OFVEA6hgop8OHjZju0/Y6+q8W9Plm3xmQEQft2go6KFowH0NuK35Xv57wnBixOO7JpQgn0Rtl014aj59PuaWwJbOkgcZ79Bt3XY2h7wyM0Pmq8T4JlIKRmuOwmlrrTVlZ6Du0uc9ya+NXvnOQl3xhYzrtUA== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; b=j86VmB4+1YTd2Yd6TGQMe1aUiYWje/4yuz0Lz7klghfTM2z4yVMPHqXEwkDLXyC5Ly6OyHxc77zRURXNEdvsMg7IFAgyZ1ZgiMRkBM/F5LOiLbAAMTlzvHnDHdUakgS++9gGKTmpP0ctXccbTFG/opWCwZiSADJzq8dFlpNV87tJr6FkQ/PveOjn7Hl82We/Z3k5aY9Heg5Fh8Gp2usAV4Ke1XgxlrvZClabdV4kcaP19cfltHsN2KKxt09BV65f84JB4hAvMTYHXMPAX24xw2P8k6yfLiy6Q8o+3A68RJYE+UZIyhawUQDyAuYdW38OE8q4FyuFMAMH/0c8PbFMBg== 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:04 +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:04 +0000 From: Yangtao Li To: Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/18] drm/hisilicon: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:25 +0800 Message-Id: <20230707072034.48977-9-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: a4ca5adf-f285-4b3c-9726-08db7ebab99a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 05dIxWr/w6fr9DW3XHYmu6MhpoZhPboVzj6VXZqjpcOGOF3OdIJUCgawLObw7QfiZ2ql9V6s775e6yk2qUpBCWLFOvtYd29xjAOcyTqlnXFETwpPnFVKTzWN+IcxWT4fuFn2yxCcWj5rh+XoLXKSzJfQluwsyxqVGS9RhO0OQys8YHOqvvn8q5PxPeCdA9Ju2LSEFSLWbjR+VHf+xhgd6ziENXX67FrmKS5MpZVTHyWMtEbJ+MF3wf349N63FTw1onewY+ZcxPywNO1i+v5L4u6rrumzEwGUC6Tszru4SlJHDKD7WYGhRjY5vZAxtUmAr25S6V46p1Vwi+eLZC20X0Fpft2bKKY5emPzMBWnYUxIjTm8kII5K5xHCl9sLlb1RS34dVOf16lGh6LTlatbNeZRXRlzmlQliGZXy9ndi/vMjkUJJGbGytxc6SRGXLUII5WBkz7YRFT5i2flqMOTRjduYC3jyDauFpw23PLJ2WPkb4I/4m9vHYhVUlqUdvIACaN+CZj2+6g3KdkjCp5NjOQt2C1yKc4sorshgvLsrTCYLiO0pC+mwu/ctYmmixKYM9VCSxAIFHNP9OHZxhqXtUJ5pZ9Aq3/nUH8T18wzYzLx9A8qQN7/q2KJFhE9tIuQ 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)(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: =?us-ascii?Q?n6+ubHSO/RDE1D/eb7q+/F62zT9XmgiBa9kzd2Q2T+zMQveNk52R2WiEvwiK?= =?us-ascii?Q?BFitw4upY902nFZJ6tnA8bVIB0mf9pASC+APfoJ6jWY9XAkOUYb829UCQdM+?= =?us-ascii?Q?KZvlRh/vpS6FMX7GzICPDpBQuZM9VI4KGUxmgE89+igOZNMpskg6gooaQ4lZ?= =?us-ascii?Q?ykHHSpt0fPs8q4oPr7r2AmwXo0MFPsBBXQnxrMsAjMnBLLJ8yRtydmy8S+kv?= =?us-ascii?Q?Evu0L4v4gdOx+T2jlkxXs3B+0IghiEWEz+rdRqJ8UQ1yJj9V29HQxgwpX1VS?= =?us-ascii?Q?9pqsilweVf2dY/HgMakysJw2uENuHGHbkR3xsv+nXY9YVjct7GN4vOsWwMBW?= =?us-ascii?Q?TXBWmzlpKb94R/QiYY/gtIl4H4ySZ2mg5ife8MHzcuRWyANhRPFxyy5AX/8M?= =?us-ascii?Q?uRRN10Z++TrpjzG2HwdlP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V8GSCgXGji5bqkCKq70ZjeeH5LkG8f/wCDujscyOoeUYs2Zib/akmM5eEI1+?= =?us-ascii?Q?fjyVbMqETK/htjBJHciG42nBIrAjGagS5c0oK7bpUfDqKtCN5hUbL1QnJkJM?= =?us-ascii?Q?Oesa08PK+W25G69rN+6NwPJhhW7zT6c43tZ6qfpw+zpS8KnTHmpZtju08NGs?= =?us-ascii?Q?BQcfmj2URtuuqUnVDFPQh15omrCK8Dqm5QP/6vJjBJVOqdFGXqMJ5GtyrfTL?= =?us-ascii?Q?lSIlGz7yCL3OmhvLt42/wZUN0yf/YvGy9JHGOTIU?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4ca5adf-f285-4b3c-9726-08db7ebab99a 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:04.8025 (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: Lxslgp6YULL3RAnQXxTa2lHb9WmLRA2aXoEVGlWE068rvFjM0RAmA76+iUaSAnJMcoWvLR/6wJVRX4WzzeRjAA== 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: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c index d9978b79828c..ff4ed4639509 100644 --- a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c +++ b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c @@ -826,7 +826,6 @@ static const struct component_ops dsi_ops = { static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi) { struct dsi_hw_ctx *ctx = dsi->ctx; - struct resource *res; ctx->pclk = devm_clk_get(&pdev->dev, "pclk"); if (IS_ERR(ctx->pclk)) { @@ -834,8 +833,7 @@ static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi) return PTR_ERR(ctx->pclk); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctx->base = devm_ioremap_resource(&pdev->dev, res); + ctx->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ctx->base)) { DRM_ERROR("failed to remap dsi io region\n"); return PTR_ERR(ctx->base); -- 2.39.0