Message ID | 20230710032355.72914-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 v5csp4765478vqx; Sun, 9 Jul 2023 21:08:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGKw2FnK3oo1EWZ0QnRLmq9pa7MWms298QYYCos5QsSb3KUsfIqEV+5Ez2pD24K5n6Wq1w X-Received: by 2002:a2e:88d8:0:b0:2b6:cca1:9760 with SMTP id a24-20020a2e88d8000000b002b6cca19760mr8623096ljk.27.1688962122265; Sun, 09 Jul 2023 21:08:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688962122; cv=pass; d=google.com; s=arc-20160816; b=hBTpITKTZFunWZRmy+AoqfxpiB1O1eG83grUevrLtrTR8rqaUbaCFYyHmZwxDIetRb d2SXq6AK9AGDbnCUIBN2KA51efvy06EzDI+0TFe6xaKYsmwJbm/KfslFbVpIr9S9FPwL m4DET2c1HOg3R1YB2BJCKYKzYTeH1XjafoVfbFtftCtyyiRCDazFm3NClC6j+J1Kppre wOhyYSZWqczkxhr1zbu1016GpR3guhuY/3Y1GpUmh/4Kun1gK960pg5CptOScmGIWK3i xFtqUpt+UO8XPsiEhRF0DiQz0lgxuaH/jdEntJ2WU+Lls76qaTuvCnlm5wB8BQrW2/cM ZfBg== 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=VOxYaTJHHXcIKOZ5Jo1IIuZ+JvmIreSp+yxbv7EYeCU=; fh=Vp1JkYH52VUDF5gnf6B17H8ZKTHuP3APbYFBUGx/UHg=; b=xBxCcXsTZTCqMfYPzBM73VFTYBIlbD+uIKPADrea3DxKGm/Er7Ezb1n1vDRcJhE4E3 7dddAFRZwssImBxoRjjqDhSLowqFjIA2S4EXfPfv4xCe22rt17L1LXi/G+RvbqexDtGp iz4vW7OZxGK9c1/Fr3QF6zt5S9x3bW6g/5y5QOAXwdXv9gCHEoWxJ4WlF4grvPvPZ3S0 V6Bds+KwFbel/6GxJld/APDLjIvPgc9pIRZ56h8vk7XIQyTN0lf+RMs8DT5OhD2TzUxE huIcUPw4/z6qrNqBe3OsPcXpc4nmUMPhYCO6k2TXrs5NMakrWtH8raSi2Kype2vIa99v NMNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fZwW+IGE; 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 e27-20020a170906249b00b00988d0cd5273si1413280ejb.112.2023.07.09.21.08.19; Sun, 09 Jul 2023 21:08:42 -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=fZwW+IGE; 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 S230329AbjGJD2Z (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjGJD1z (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:27:55 -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 DCBA42701 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QrslrVyaBZWWkWVnPR1BSO7ukRcBKeBkBylTmU2pXtRW6sjoSU0oV2SWPrPtpdK1/uUTpkTDmKLcZ/XX83R4VQqbTwXwonNiowxiBrESvgIDOJ9s78I4VsHWf/bpo0K/I8Yi7LFqSZatIBIcif/LJSzIu3I6NNORXRVe8GjF2P02BtGvOhQvVld9HBLkeBcLmov5JdCoLKFMIc1NL8qsJO3Mgx0/ZCkeVOcpyYYjcQLgsy+q7u4AE03JUZqg0XL2sOsCfl2IV1gj4iOqa4UoSiDE2NJfkqLH6hhzwrydv3yi71PAO2yaQMq+pxylQAAiWZ+Us9bitxHcZ9CzEVvo4Q== 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=VOxYaTJHHXcIKOZ5Jo1IIuZ+JvmIreSp+yxbv7EYeCU=; b=biE7/JysUvUK/lRfuqqtixm9ldWAncICWj29hShN/ZGhF81MqdF5AzKb0iQnpi62YRJqafdyAfl5e00jpxOFdzI9vuhUy89Jiai2TV+G4r13Qt2vvzGaPvHazNdLWFRZ1nhJVNw9z8Dqe+zS4nQMMh08deHxo2K2DdySGlZ0M8cNQOdPjPjDvqDF6eeyU2YyuQAXXveK/e/N/c5Ou8tBKN7rHBFgL7ANdTOaumiQGDXYLChABZr4KeaOqInVcq0NGCHrSuiTSPy15CXt9iA2eXh99jGkqY7B1vX3YLNNUE9BaSUOkUiovf3QxhVX+oOYk/juFF5bnnI+WrlZGyKVQw== 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=VOxYaTJHHXcIKOZ5Jo1IIuZ+JvmIreSp+yxbv7EYeCU=; b=fZwW+IGEZ/LfE006H4SdUBoO6e9rClME6/uybleyKrgtD7ed7m2ZlnaUtZcXzzrDiL2ieYOUgRoBIzsmWM8jI4uVnaGqzyt/WMdmHMl51GQiiIDErS1pEHG6LItmsA991pn8tnMQJd4i+qbJnm3xjONEPcjxwf9g60yMg7/Ko4eZwyL1UWT3a7z4bGDktsIzb6bbh2IdpGue3/XEM3rLKEVcKu9Du3qPOSiIquC+X/2RnsXzwE/vuuhh9FUVhF+pSIf12QFDGYvdFb5xsvCRpWsAQGu2AfqW1zmQyfpT4/00u68LYxn5jRvAYulHwtfOdw7FyQ2v96x/M8y4RWLNWA== 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:51 +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:51 +0000 From: Yangtao Li <frank.li@vivo.com> To: Alexey Brodkin <abrodkin@synopsys.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 18/19] drm/arcpgu: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:54 +0800 Message-Id: <20230710032355.72914-18-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: 059bc2d4-1967-4242-8a80-08db80f538ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7p/iS2T/XDGL3N0JgieZluSDW76khcHGQ+29nfZbjc/4+pvXhbjiQSb5yamLDjW2trtImx89q3KAFewCUwLC8oP5YuaQIehYEOMCGq0Rz9QwChNY9fEkQEgmq7MFVPdW8s9pzskaN3YpHKLaUCcm31U3Jb18vBs2Fu5ugluP0WFHtOseUeVDBB/Yv+re2GR67hNya9CDbrJ6/f6E0THZlyORPd/yUg1b25w4g5cqaIWsjswucRb40FHdb8eGzkFm9Hs03idR7dzg9fMmX8kLOJCU/qoBO81tlbglSE4osPyDuqT2xudEW3DqQ3qX7HGOCxEaybkd019QA8LTGEOS6ZuvVLRQH0/Hh6S4yFuvUBU/b0BSVA4VEj1j0bL+lys8A2QWMI95tOG6ByDT0IQU+utg5fjFB/XNfP2mcI8oSegi0xa7SL6sQZtfsWd9ZiOu9cY5A59EE7Zuju4ZVpXf6qpM7HOyLLSvJ1Vz5+l/2ErQmUnT0QqOWVce4g9/4y+kc7QYREoNXIhNow8lAYIs92NE0rZu+VDZJgeTh5cwnQU9b2AHhMxpRit5ImH4waFkjixr7B80Z/2pWf6MZue2KVeEBT6HK1rwKQRN5IY2KxiqAkrZPtklGwM95VE3bbt4 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: rjNGdthGWaq830ZP9PB7r/+p9tvfLek3kfVmdHsBKy3hGaOkpx5/rZg0Xcoa3iUs++B8Unp7xnBASZDaYb6EabvLlEWurrxypg8vlYSCP69DbRGTZ7cx8Lrerkv4xHz50Z3tXTFkt8G38d4sqBfUq13YDpCLv9cqvXRLeeg4mp9N+tR5h1DSAdBoMgnbRBoH3aL+3tlR8hK4cAbfECvsgCBkkfsjM+y4e13jHVRTrAZHW9aS3pRLD9vnYe/oVLMELknJ25NZtyWcP8WRLj1t+i1emAXBCaxv3vGlBvV8DOxjA+9b/Ky+exCLKhxQFA5/k0K2Tx0kPFBGc+4PYp4u2ToihS3HLoz1XRD1JSRKYhpLZBY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q3N+v1vr6PGmrCGbiy9lEhP6LUrh/YHC2tUeeF+p+GFhQYsoa6BRqOk1ufQnZcLcyLK36p+x314HS7ZO3TFAv28i1R4uuEpUhVYXBfFf+uL8abc/URqqg9qMN1Hk1oWRrCzVczX6DjOOPG X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 059bc2d4-1967-4242-8a80-08db80f538ae 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:51.1520 (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: JT1w0mDtM2d96qLVIR4QImWF0Kg7XDKJYXboVMLY89I57gMJcZRidCawr4neF1SNuv1Gi3GTi/wKYsbqryKkIw== 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: 1771005145814079262 X-GMAIL-MSGID: 1771005145814079262 |
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> Acked-by: Alexey Brodkin <abrodkin@synopsys.com> --- drivers/gpu/drm/tiny/arcpgu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c index e5b10e41554a..3a5e66d909a4 100644 --- a/drivers/gpu/drm/tiny/arcpgu.c +++ b/drivers/gpu/drm/tiny/arcpgu.c @@ -251,7 +251,6 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu) struct device_node *encoder_node = NULL, *endpoint_node = NULL; struct drm_connector *connector = NULL; struct drm_device *drm = &arcpgu->drm; - struct resource *res; int ret; arcpgu->clk = devm_clk_get(drm->dev, "pxlclk"); @@ -268,8 +267,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu) drm->mode_config.max_height = 1080; drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - arcpgu->regs = devm_ioremap_resource(&pdev->dev, res); + arcpgu->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(arcpgu->regs)) return PTR_ERR(arcpgu->regs);