Message ID | 20230710032355.72914-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 v5csp4759610vqx; Sun, 9 Jul 2023 20:53:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXGzO78QstXbH05lS6llmV0XiHmqDPWFEemsJ90fykeM8OIUDaFu9ArtWhGwbc/pRtU0ex X-Received: by 2002:a05:6358:99a8:b0:134:e549:50d6 with SMTP id j40-20020a05635899a800b00134e54950d6mr7763880rwb.10.1688961226755; Sun, 09 Jul 2023 20:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961226; cv=pass; d=google.com; s=arc-20160816; b=LS5G4grGUOP8WUqrWSfSeNalYLPgYHVYcDkw8E0stp8c06JXRu5UAG4T7SNWwUA+nv Rcx2rEa3wUSy0Wka6DSF1HAQo5OkfkqmGjxbDGfOQUOtYwdLduzwjdKp3fbLMnr/WMnt axMRdIBntFY7BnMXIAMMuIaLSbn0EpQ5WWCeHwcQV6CxIBUpRXA8myAgnSlXR4AgZFRE qTcCM7U20NVe3GrErVZByDrN3QMXChR0g3jgQv2y9g6klCTbPy8l0kcSLthTJQZsZQSN OYgKaLudWiF9QclI3u7XkN90B+MWoF+yyO9oR5LQaWP8vvmc5Kj8Tp3sr0SRNrS6Gnt+ APsg== 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=xd+RZnV3I9+jErDJK6tV0AMCyd2Ttqw8iaFyng/GDd7LUB7GYYcSrnbDGzfwchpyjg Q+zR//cQpMg+vhSvfpQgG1PvpKD80xUyK8EQR4BBD6/4m2EHfbaUri4sJ8xQT4Xv57H7 KPSvZuMc+kOnALiIgEtMrIyX8++I5hTA0Sun+QamPkxLmRJh7GnwFx6aMhFAh7A2Fgyv 4mBAGoDif4S2rMuiwaePgX8lArpFXbFnmfZUttTE61Ynn9lojZXY4D/wxB7nA/OxVCgJ ovpBT1zFxPxL5u0cJN15rKbeIYfF/BX1wm3yieLxpYUX4c32sCufUHWde6xn7ppqA0bb ScgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=NQ3O5Adx; 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 n9-20020a635c49000000b00553ced07d17si8406863pgm.123.2023.07.09.20.53.34; Sun, 09 Jul 2023 20:53:46 -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=NQ3O5Adx; 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 S230293AbjGJDZP (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Sun, 9 Jul 2023 23:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbjGJDYy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:24:54 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2116.outbound.protection.outlook.com [40.107.117.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DB7DE46 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d6d8WjzKJUch+8QnM1O5l9SjkjyTl16/6XfpFgkt6UNpa8NCVZtQNr62d8CRKp5uSB9fPjbmANedkpud5Xs9+A0J33mnvPBCPCEaRXo3lopA6NTU3a1/10mqD8kfj11JbOqDKP1DBfhGtrYfGsbLSsc6l66CEjiE6A9z+gATXRWrj22/WvQaYbGTaBg+29sSJxR/CUC0vT9q39naErGWw1ukRkJZ9BDhMFpZ6hYc87JhH+b4PnBi07h2wxQQVVyk9tPT2w0JdhmBKF1zK7GVA8X90p6Xm5G4CjFz5Wznvznq5CCult9yAf2p/jSovK677FNgmKYgQ88VRMP3YQInfw== 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=F4NHamCZxzq/lMGjJbq0/A38egoUyPyGK5THb2SGAOCR+wD2PFwK8B86//vgDvkOgg6y4yGFUuJTZoZdXwuLMt2KBRyV0R6Yqu9HqDV+PWWydRFSilvhnK5Cb6VrWVzDPsx2EMowMRfha7LmMbwNv6tbbjFnQDfY4J1w3MA5E37ZNlOEtUG7rxrsI67qRCV7Wl6llXZ4nNJpRMc9wH9tV4RJtpHvJmwTAWZ6xLmUHm7vbobELWp0GgNNTGfPq3XeIbiakzjWaz5ZG4WPO5M9UJ3sA69s1dZlJNStK5zjf8T+ymErDJugJr/lGt5KB6gNTIgy2D/FcP0+wb92m16AXw== 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=NQ3O5Adx5dTrU48oYbBn59cnchsj/bAlPF/9EmZlXgiUeEzRJR5urYFFqFQSmu6tdATEq3wmpTNFqPGMQ2ijXjxHiNt8HlXMTL2kUnL3N56eNTtlaOTfhGY51DGko+RZTM++FrudiQhU0iu3y7sGoM7eHyxd/TH10fFbb+OUvYT4WgU127WmWMqENHsC3kGx4m7rdwHpB2m6+hfCjLZu//cVIPJwy3iqcp5KrnEClMLNhr1ajKuh0X0Pf+bFuIY86Tj6Km4h8yvHVPIoBUq2v+rq0YApPRgJzLIqokejYDxkDihQ4yBTFSI8f06TE/OWr6op9C+csu44cg0liRV0LA== 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 TYSPR06MB6472.apcprd06.prod.outlook.com (2603:1096:400:47b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 03:24:29 +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:29 +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 v2 09/19] drm/hisilicon: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:45 +0800 Message-Id: <20230710032355.72914-9-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_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: b7af596b-c2c0-461f-01fb-08db80f52b97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 98bGvqiHoZfeGi4knrcGjK+fr7Fea2yBMueDvkaB810MQcwvk6jVLYgSTE9MDLpVXsrcBEDpabqxOfQbCadkhjE57iX0MvQcGIqtMIsA8DTlEpPE/b8fEFX3GkTYVLldmZsr4IJ41VBTNMqFtYmc6qWe6NOALl62Lg9vGUVYYHTSLQ6awpLhRUSo5TBaKTwqQ5ZN+DVXLAIpympURVm/+5fgMGa37/ktQnfGBywZqmO2YwfBMHCX9HiRblrTPDPW4hmAiJDwMCYUdlpEXUp7a/nMHPxyw2IdIpnDJQi0ML/nrPV5vjtXgCsr4HOc/qaW3axNLzMu0cCEfaW8gZCrSOKeqgkHBrACUtHeWiQO+d7/coxdaUyPOvSEyyXMU9ctO/izaA85ZKLk6Gr/KKSq4jzqgbrAoZxg0Jostyrmb8zlcPDxgXQSVMOKZAt2HgWRdyN2MEYPXg8yMb3F2HRUOcueSLWMTOIKz+lbv1ynH7CE/DBv79gzCuNeJl1jIrFCcMGprXRh7M/4UBY5OHdKL7o+4Wo3xNgJ1srAV1XjV+Pwm4ZfuJBZiiFO8uD+8Kgovc4hIN6hBav+egXQL02Bwcc3jjMjARAtoQkxLs1CclEw/aRG1GC5fXrctmyVEhjg 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)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199021)(186003)(6506007)(26005)(1076003)(2616005)(6512007)(83380400001)(41300700001)(4326008)(2906002)(66556008)(316002)(7416002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i9PqWLkG040hK5WMcRlxctKlG7ywKKeqT25TPJz87lXmrgJJmN2+HqYi51lstnfzb5zwc+hWPBoIGmM7ewh3X160WgmHpnQypxM+a+NlkZiuc2+vxeExzSNSQsSsXad1OBR2U17UkGwr9EJBLp3mEvZmExWrdn9w0mZ/VyLe7mZs4WgOG8Ab0OxyRsmtklBU4sVtVG6Mo2o8ALCYIL6FnUXDxm7YgTvLMEsIK9fPSiuiZT6BMuU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929Vo/H7BVLmgoIMfFt6Owp9RS6Xg+hvdg/8ZMQnt/gE/g4lMg7ZYTQ2K8BfuLbTI67XGHZiibbxn0h6gYWqEP9I3hHIa/LyCfLILwqP/Az5GjNZzqqRlLLLc2hGszqFkt1iEmGMwbC/dmvime4T4iFOp8FbImT75fVfyxXZYuIVytXQBSKWcLyNsVrqCndCTMujUas9xxYaQ9MGHDupfhmeewE+JYOTbKt/i8M+JEeQyd4u7ObETl/yuasIIXiv2fNTxFAFf57lncq49UE0J1au93u X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7af596b-c2c0-461f-01fb-08db80f52b97 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:29.1814 (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: Zdajs37lBmaI0XX5BN7ca98X4Fp29i7zmyyn1liSKbUIETWxED9QYQ8UW/+/2Dhj7/GRVJ2TlnYFCx0hRmVKSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6472 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: 1771004207250231485 X-GMAIL-MSGID: 1771004207250231485 |
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/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);