Message ID | 20230707072034.48977-9-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 v5csp3090819vqx; Fri, 7 Jul 2023 00:46:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFKXfbEcRfT7gEidCizeqrAKcFRqfG9azZxs0edYtLcHyVvXoB30Yq7u6+pJ7uPN8n9NTj X-Received: by 2002:a9d:6ac8:0:b0:6b8:7bcc:4c75 with SMTP id m8-20020a9d6ac8000000b006b87bcc4c75mr4475027otq.13.1688715963891; Fri, 07 Jul 2023 00:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715963; cv=pass; d=google.com; s=arc-20160816; b=K60SffkO598roroc5b+XX7fHKn3l8D3nI7dSz8p2Wv4BL94yq/bV3/rO36SQy8mhmP 8d4Q3wlBt4lUXn27gr2A9RQi+sbg3BNzSAeVAER+N356EdpnyrJcKqRg9Js1w0UHCbob KGy9sbTyBJude73J2sUBakGGBcOndm2ULvosqJOC6+U2M7gMs2kACAhk0fsG+k9cu8uZ sn4dxHZyuojdPckRw5lHw6VZBFAeNaPoRRSFyfHJS/pnSX6n+12u3EHRyrQEEPS/aDxt h8I7JViG8PPcBF1JV2Mi2E3BAALqlZQfPBq1yvCCuz040gSHTcwSU3pu2YeQ7EEKPm54 j8Dg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a63cc4e000000b005576229306esi3306604pgi.545.2023.07.07.00.45.51; Fri, 07 Jul 2023 00:46:03 -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 S231786AbjGGHVd (ORCPT <rfc822;daweilics@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <frank.li@vivo.com> To: Xinliang Liu <xinliang.liu@linaro.org>, Tian Tao <tiantao6@hisilicon.com>, Xinwei Kong <kong.kongxinwei@hisilicon.com>, Sumit Semwal <sumit.semwal@linaro.org>, Yongqin Liu <yongqin.liu@linaro.org>, John Stultz <jstultz@google.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 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: n6+ubHSO/RDE1D/eb7q+/F62zT9XmgiBa9kzd2Q2T+zMQveNk52R2WiEvwiKBFitw4upY902nFZJ6tnA8bVIB0mf9pASC+APfoJ6jWY9XAkOUYb829UCQdM+KZvlRh/vpS6FMX7GzICPDpBQuZM9VI4KGUxmgE89+igOZNMpskg6gooaQ4lZykHHSpt0fPs8q4oPr7r2AmwXo0MFPsBBXQnxrMsAjMnBLLJ8yRtydmy8S+kvEvu0L4v4gdOx+T2jlkx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LkG8f/wCDujscyOoeUYs2Zib/akmM5eEI1+fjyVbMqETK/htjBJHciG42nBIrAjGagS5c0oK7bpUfDqKtCN5hUbL1QnJkJMOesa08PK+W25G69rN+6NwPJhhW7zT6c43tZ6qfpw+zpS8KnTHmpZtju08NGsBQcfmj2URtuuqUnVDFPQh15omrCK8Dqm5QP/6vJjBJVOqdFGXqMJ5GtyrfTLlSIlGz7yCL3OmhvLt42/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: <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?1770747030057292115?= X-GMAIL-MSGID: =?utf-8?q?1770747030057292115?= |
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/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);