From patchwork Mon Jul 10 03:23:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4752175vqx; Sun, 9 Jul 2023 20:33:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsQHPwDd1Xix8LPFLR3j/2xx/4oJeKaCCkJ+c+fVttJyoUllnhNw6M7IThQgflHzt2DXDy X-Received: by 2002:a25:ab73:0:b0:c6e:5cd1:b224 with SMTP id u106-20020a25ab73000000b00c6e5cd1b224mr8002530ybi.14.1688960021095; Sun, 09 Jul 2023 20:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960021; cv=pass; d=google.com; s=arc-20160816; b=gRB+k+dpn2OgRlBRkch++P/Ke0nEGtNxe0Iu0rUQzSUeJuOVHH5N+Qpt+bLLpNf1Ff YLI20K4ubmn8y9GZGJZwf23QhA9nMqVibWZ1i+KW+PP2PpEEqlnDYNdKp7+BamQirCtW TzGyvnH0pZK9egUWNGAOeMYbAA1F9DpVE7hS1ZdhI7+/GsL7E1TG+H45ZXTWakgXUyrN 5vF10Z5g3SzGbS0Noj06zhXxbkOhUb8g6/onawXtUEAoCBNw2W/aGo0NlOVfQyeUjVL5 yyoAH6Qdckc5tN5/vaxqjinTHkpES/IOympL7QmYBc1QjmEnKxYTDYNC94fBUDiuf8Ux pKug== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; fh=xz/DfXU3T+GPy/wXigluXdTbjElXsoFgcEbqPVABYTk=; b=JpJDKqhjfBXvOk/FHZ/iavHJ1ISqlkNBuGZ+emkAQLlbx5X3d/Xyu7BY3oRU2jZDfo /cIDdoVGTNqqJbwTFNgKOWfalnvgmlXaaDPxjMOKyKxJ8ZEGJYUyUYCs8vO+CkRRZ0q3 n4p8t/2VhI6JKmBlaDw+rYYJcXKSt9Wh8C7nQyjNgu9Bbor5L973uRZ/IX6GwHCAg9jn z7KRlv96e5PyG9B5+EMKwhkuZp7pAIv+po8AsahL+Yb5ysWfahoKsvFk0BYzIyd8Tj6x JSrNdo5OVnQCKMf9NP4MW4zFKAYr9NbelDl428uGlAGYHxxTfxRWKwFcMGC/bvgViC/r Ga/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=i12DTCZt; 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 f10-20020a170902ce8a00b001b8971cb96asi8760517plg.601.2023.07.09.20.33.28; Sun, 09 Jul 2023 20:33:41 -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=i12DTCZt; 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 S229990AbjGJDY0 (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjGJDYV (ORCPT ); Sun, 9 Jul 2023 23:24:21 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2130.outbound.protection.outlook.com [40.107.255.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C9F100; Sun, 9 Jul 2023 20:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UDH4EPMUcp8HWhe8SszUgpQwifY/ps4X3oj7yVPclLMRllJY8coKMw/eyhf1WqQXgJXAoLBqNhR3nHEpPFTzeHdXcpflQjX0o0vfJDiKc7bTAmQYCjE3wdjBGDloY5/TaraGvGrl97FliLYstHBlwnxi0d0oi3bUrZqyiMX6b1GvB18JSsN1rEc9km9ydGUH0X6c0lOgRtdJccASxmkWtdz7UpTQ06glnAJuSkEgk9VyzM64ZmaC31csEU0l2fYv/UqAZQbtbZVr8KDD9f1lZjANS+OJxQXP6zJe39e0BoPbzBdKxleQP7Rx65QXFb9rcQkjDNdup892PUixZtQcxQ== 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=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; b=ivHI6/sk1Cd835jJE/ldAPR7G9FwlECF4kYR9FSAPc65KOzU2egSvzNxkWZ3ePEUdmzo4M1fwdz6e1Bwjjubr6XL7BESnKDp3xZBQcqFkr46nSYlGE4JwsTiEf/ULQPnJlj7/rzG2U/vNXmzI96x0GKv8Oy4JJByRpwX8xRQgymXleIMu7+q2gUM2c846eoHbDE58kNDqFXi+wc+0rbNmOKl2840r9yAsLtFOwtJZiSXH2kM0B0GD5Wf/TqIqIO7QQ+JoJW/mOcWaIpIRzzYbRDmqPm99uex/1QDc7uMqZFIXeOvUvrASAgOGI8mRU9WV+dWrMiVqH6NweFaISuiAA== 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=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; b=i12DTCZt1+eZqzaZ1CfMyZCJ6xWI+b1+kuNuvkJ+dTHMtJVrF1+DDC72PKUPhw3YzrYBBJu8PHZghT3i+m1QmXcNsNkgu6RXO4Y9hwhiePQkf6mYPiPfu07XJgNbJv7v1Vqqh0IGxklOtxy+Tqj/YiNpJ1wH2HTWSJhlLhtW6YrOS/6O9Nzi0oLpuUegzJWrkvqZt5EpNba76YZWb2pvSz1aCVCM30Og5ArRmLba8N8HtZ1yaNeUqhi8+sVppEB+pg6NAlN7geHG/D9Dpd2lcbVH+/cRGW+qFH6rXxPKPnnH26e3moHGyQWZedpwcSg8zF4ksLLsjlg0ct5Mi2j0FQ== 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 PSAPR06MB4488.apcprd06.prod.outlook.com (2603:1096:301:81::11) 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:10 +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:10 +0000 From: Yangtao Li To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Yangtao Li , Laurent Pinchart , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/19] drm/renesas: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:37 +0800 Message-Id: <20230710032355.72914-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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_|PSAPR06MB4488:EE_ X-MS-Office365-Filtering-Correlation-Id: dc53c45c-1e74-4db1-d679-08db80f52059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7k2C6znyJX4BfwjAVlocYqDfoZkP3lj1dMohYqvFZ1i/zS+EEEfB0y5aK4uuBxoR0pnXd3+hsIzAVc/em055RUOY2ERsUTUv8w7BU7oVScvDy0eZqUL3IAeQtKiLyoLGWhnVl6AwbeV6E7zqapjSpHbjIlJf9ZLdwdaD5fuhU0ruDRKTDRTnzQ7jJahLHMe9fmAi6dtzAzWFg2Bzt89Xs7O2zrA+yf4HgWsFBjhKNcQms/oHi54z3EV1V8FgsdcmKIjBuFwjlD9Esw5BGIqSdJYipQi2sVJ/0/IUt4LrzI0B6XxnUoPoJKhNrQezIHlY3QHYAbxQKuR2yfW5NzzpBlv6Lyusf9/rG/L+IoKB5CfGoIqDPK6mQXDuYav4WHj/duPeS6PkzONYYrApYZrCeyNVMRETI0T4AdoTw/V0SM2I/YnfkqwchiCS1mBEtQvUBU1eQ/HDyaRd3PweUclX4fTI0gnDbZJZ4rPciRi7SiZF4Ht//qYpGhJjYBiVE9WvaxLSWPfWaDzCkyOU9hCS54zMs6/ST6cbL7lcrjvVlgy6uOZFgG8Kp3t/2Bxhze7viDdtept9nXVk6z7Ra8IfiSYwMWAFesk0foIgGVqm2Wn4xEeq3I7lMwYsivj1QFMa 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)(346002)(136003)(376002)(366004)(396003)(39850400004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(54906003)(36756003)(86362001)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yDGp9p5EijFC6ppkzcVD+TsDK7RaGZDGDgkuNiEnEiIrgwEXSCEtRteNyetqQImExoWX3lr9zpXz95ebM8Vp3xyPa6ClUgF+uvqk+jLYdqGbcyorZJiJ7MLWxjJGIQi9VJ0kwBY98m1pZ1bUfJGeBidt8OV9Ltx92VOoH5omlYqizWFVXCh9h43LbVklUfV2Tr2B/Z4knLw55uGVnCLM1rnsxS2F4pQ5jUWlvHTQNx3XMRWkpfS8lGkJU69OC2Wtogt7B6+EfxLcFZMVpFrII/ChhzLzpd8uAtNj6/XPfvEOkOGgF/muN6MAXhJBm7hIJpknHnEsv5gygVil7e0AgzllmRFtL8CL6O7ovxBVTrizycCPEmgH5wm5IJy0tIgzysQhb7+EGuvd/GS9vXVYcpZ4NA290GKJBnwQa02NJBR5EEYM2oFDdiGJP+dUOF3wdzBqAbctruhOAXdUw/1I1kJRh0S6TZgcEecrEvrQ6XwWWX3PfSpj9aS0zec7W8axsABXrGX395zot52jNsO0xCPOG4IDQMLfWnSPUbZvYWccuqs0I5V6PNG1VbWdf79nTznIRadR6OaCln2s6WJyUURbJWDVTPLIKQPXl5bG5FBp46cP3ucUFpqOs0MDwy3XjORvNmMQgeA87yPDFhmaMnMsD17em0/lZJ1pwGxOTYblxU6U62i3ry/QP/7Pmkt4JDycaIdh9QqXYoN7wP1po8F/SUfqvD4r8mJ/+h85+wc3VoTICRYsh9Hi25EpmAJQW3pt3DB+X+GgAgN035g4klQaMgO7vYU4iUBCMdmI7RW/+dEpr07cOX/rTLVtD+1rvi5yxFf27sBOa6sGqdgJVdV7AON/En+pRQA/GOUWbtt4B2zIx5dpdSHLOFygRP72F0mTHMTEzQxlf3xntpL9mHNGICECTnI1pdmEUcsl8uir9nCBXwZforKTv79/hTKaKMCkXNH0MK9MGT4j4f/d0Pce7dqYJuhP5YrUROA22FUHkdqLFqQHd8XAIto99O8eiii3IUMDxxOjdSIIuwFcmC6Ti3vMSAOclkX1/weEdzpNCjnrxMw/TQLknIcbF6iG4Yc31f+9pUfaze9NtwBIcMOcr31n9jsunt5L380/MT0zPyAbq6iNFgO9LtQR3oiJ2m7gNt9Xoa4A2iI44LV+abTM+dgXypzq46D3F7nUyxBW/d3Q4UJT73o1f2Ce6bCuI95tcQfKimMxxo4ly64AWDssE5yGK5+sdKKr4JELSLDMxofWizmV5MWEEQVQCkLSlatodGnwzww59arFboFtDRNhnrP+le3rtfnHsk6Gj4h9aEFuVQfUn1Rek4qcGf275EsqNH7MZf27kCt1rBpryj8PAIGYGSmbsFJJPJVH5DZoBZMsFhHazEmEJVxAo2DUBY8/Vk+fRwr1aqICtBcO2xDV8yhCAjfnNiHl/w6XPR10RydW6HaojS2WCmB1WW4D6qLU+A2oaSX1/MnqM4eeOHL3J6wC3QepGhpPyR/d6MaVSqQOkuVZA+O5VB2qGO+T3U44sfXq5dbgDJGq+Am12jvJWJcHkeQujLsxDjok8tW7cwku5Vw8g+4QgBkmEv20 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc53c45c-1e74-4db1-d679-08db80f52059 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:10.4239 (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: C1QWMJieevsbX4JIMAZs0VT5eR+BbZTb5qzd2RADqVllfyM77FowKi48AZIEMmsBGlM9+VZiU9puAdQueFDZsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4488 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002943110344156 X-GMAIL-MSGID: 1771002943110344156 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c index e10e4d4b89a2..4bf9f5d15fa8 100644 --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) static int rcar_mipi_dsi_probe(struct platform_device *pdev) { struct rcar_mipi_dsi *dsi; - struct resource *mem; int ret; dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) return ret; /* Acquire resources. */ - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dsi->mmio)) return PTR_ERR(dsi->mmio); From patchwork Mon Jul 10 03:23:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4754519vqx; Sun, 9 Jul 2023 20:40:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGlY/+iz2uxtVV16zUYY0rxKkwpuFgon14WvCTVUbfJp4esUukRdT2kvgGhOfBnm0lCkzh X-Received: by 2002:a05:6870:d0cc:b0:1b4:689b:209f with SMTP id k12-20020a056870d0cc00b001b4689b209fmr5456064oaa.52.1688960434926; Sun, 09 Jul 2023 20:40:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960434; cv=pass; d=google.com; s=arc-20160816; b=X4Laft2erEdkfak72/9ptQP8EC7uWAeRmLTqw09QER2cKrneLNfzRxTJC4zkxbOvLi hd1973m3+uxkW8eeoEqya4X8OM/hyFncE3mTw332Sxo4Uk0Ilg15UNj/fI1P/YYEypOS AkT7vWtOAUSCrfGYbG/DeQhMgwCJM1IHWqsd6NLaIl8AlrfikwyVCa7P/8MMDzd91anm DYgV5ZpPV44sH2ht2USdgKDr+R/MdTmSzRf9m/tdg9DG5hAl+KrHtbGFScWg1Npil2vQ zSokxZh7hcmCZoCOfw8krZsYPgsWTRQ9Md9jGCpEwK/jztTkojZlooWQpmbrnA+fgbwG 7ikw== 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=UKJoh2hSC8dM7Y1vvcPJKJWgRJKyavcM1Y5HK94NPkE=; fh=OkhKJqwgmok9Uu1AW5HLWSzylSfBluM76Bb81dugc3E=; b=juulfItT87r3usRThWObsn8Ej1ZIjCdoGr2b/LhLpYz92OEMsmwohV4VqI7IwCskNG rm4hV9KDOut5jSDaLlQJA1XM/xBHQFwJHDk9ql5VjY796E4JjthQO0m9yAybIsluA3D6 NSrlVBxsiBT75J/L6KeMw2SUPduQCJBRwGY9q3QRQxh9ug5iMiLFJtxmojgUHVeg26Xg nUiNzSDzvuI8+L9Yh1JKQqhIRV5XTobeVtkJ3q4HeagYERx0dwDoQSQWhdqWg5EFAX1O dLyFYPj8UlHsx+NflmQxJC/cvbjbg89E9EMHHYKOOBsbdXc5yE63i+RebZ70NuCPAC4E k8Ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=YtfVcuGe; 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 dt20-20020a17090afa5400b00263dcd605a0si6382146pjb.70.2023.07.09.20.40.22; Sun, 09 Jul 2023 20:40:34 -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=YtfVcuGe; 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 S229892AbjGJDYW (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjGJDYT (ORCPT ); Sun, 9 Jul 2023 23:24:19 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2130.outbound.protection.outlook.com [40.107.255.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BB7AEA for ; Sun, 9 Jul 2023 20:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WlLUe7npvBUqFyaqhSZW7QXqltu1drCgYg6NLKvozV8cIvkDRO5lnTYBgZSr1Y1fhN5rMFXIrj6cP5YROmuJcLMkJE5czXu9t20rgIzI+ws895Wy7vsnfcGDKs4lbBj2Oz0p1CTBCIHDth1iKlWIxWW1TG5ByNQvSa8si/orvJz35tvgmoQIQXnJ/wku//kp84v3Sa4vDsXYSN3Is4dF6hA0U7w4UHqGIH+coQV0/Wanp1un6BohcQj08pG/Ux3coB+ajYOa3HHlNF1Yu/5h9P2Tw1f2Hd8pExjyECqZha7P6rG15mLr3lyxJgXfu8BXOn1oJoELW6IiQTfMhCwIBw== 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=UKJoh2hSC8dM7Y1vvcPJKJWgRJKyavcM1Y5HK94NPkE=; b=c7lW40Q7awawgxIvgeRhKARUPKjMB0uvLKgroiEGC254hTZuFLvjkTfqlDqws4uXj5EPALKtRuKeBd0ZeFnzYr8HUSpn8KH45ATWQ0CzdAf237uM4K9d2e+mAjsJ3U0j+6F5+DBl7nj2XV17LhrkqxqnRuwubdDJrOuXSAaKuNgykDIlQzMY5k5AGPoG0ew1OLK/hlFNzQLDkLz5N2FDgQacgNANZIPlM2js9cUw0KTZF/tayojXE6xrAXVB4J1qy1k80xhth0aDYcPHp6m97FaYF4sodY+UXgAkmLawg5gHWvgEJlZRxHjb8PFhNYoToZCRGfEea+R2RKDauY/oOA== 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=UKJoh2hSC8dM7Y1vvcPJKJWgRJKyavcM1Y5HK94NPkE=; b=YtfVcuGe7Cr63yYRDaExCvO+PUn46YB+ofHBvFKmFHoXs2UwbipCDb/JKMVu3Zwk9BExRcSy2VyiuIlyJUkDfJ4+afgGbanFkqS/ZtYC0jqNsY+Sf/jHotFcz57eSgO6l8mlI7dk8BLU9q2AbjycaBJC+Lgc4Vi13aLUw6ysM+HHA6EDhINBYRKa4neWZtvBebsC1gLankgUYy8A9aqPbI+w9Esb+v1/w4AcyVG6IMx5Np0YUtQH7rpY3/FzPUeVn3xoxDHT94bHOtp/QaA/VDNBxHGGLzh6ZtVtWL1TBB/xzphmbn04jwSMcPFLPDZcTxux/TY5FdhvG1HNjg13Fw== 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 PSAPR06MB4488.apcprd06.prod.outlook.com (2603:1096:301:81::11) 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:12 +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:12 +0000 From: Yangtao Li To: Philipp Zabel , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/19] gpu: ipu-v3: pre: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:38 +0800 Message-Id: <20230710032355.72914-2-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> 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_|PSAPR06MB4488:EE_ X-MS-Office365-Filtering-Correlation-Id: 8680f954-93aa-4565-2d6e-08db80f521a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JhtGblqm6EJAvxbhPErvgeZgG6OAeBBP/PcHihRwbQiG0ckh5CEK1Ki2QN1xDqBs3Ln42u9N44HoOBOQyF3A2Ncik3eZ1Bh3xlgdefF/UWKX0IvCe9aK5o1SaJmL9byaIiYi02nVUR92lUIlCZuImvyuUBxmJVtq4yMHpf6EnGUgBtckQQAZnHAzEi8rHwwGSdXhnDf9Gd216MvlzDUV8AMhsQkoZ3n5bDDnWLWO2a+eLEXGYH3lPDAbt29yAH0GpzeF8Nr1QVdvzXT+091C0Z3Fud2+bJP08aNoo7nHeC+mrqtV0bdmuZ02sfigQe+dZ7indhaxF+kZkLUWscd4rb7VkMQPWxO9H5qpZ0SOxgnG4HaSQ47VI/R424SVcZrCltPQs2/QKDvQfu3jlXuXbCLH/Yu4GOc6o1pylkHVCqh4p9nObAfO8ZkbhRIayvYUio4l5cIT+kiNWWgnorWKVzlgzH1JYOy8YqjyH1Bki/oUrDN2qPQ18p2kM7pPVHy7ZXFpWpHwvQdyoTnJ/U19GusCj+rj5lqBkLt6NlMdT1eb7jE59vGrh64tmrbuYmLGCoZ8NY1mUl4p6qp6WrlgNIj+UvxnPLDIqkabLlWeKQeVyzLO9AEEdWqfXBnytdZ+ 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)(346002)(136003)(376002)(366004)(396003)(39850400004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yeqPG/FNcWAN5mdqPS/fzY5jHjufj+WC4bcpAMS6kyKa5aLn5mBKLk1bO9vxO/U1XjzJLqK0FOUNeM0QbrettTT8e+iteMYbYD6a42bFmwMLKaPoeIccrziYeBY0VJ845ikdKqO4EKoCLjRzzNP7MDstyYbmgTSLWbdUcq/ACGQ5uCNdq5TB2YFXj3HpCCVymyilGEvCcYup/qZf888fL00OwO2lCYDQc+tfczUUhr5Rt+KqHs4qe6YQOaCxkCi3oZyngzZyd2darqgfil2MuqiQcWCEzl1qN53qqtAt0QkNZkWKsxHePXxbeMn0kdC1OsSKdF9GKtJ+U6fxRRJ4DZ7SxpH0umg9lybR47/WtXw5mCyIFqPsDNwS0XutZ9pu8UkZPLiIxwMAk+sW/fyuv2XNhyjtVcljsfW9ISsASHNIBFUIfVG1f8SppaXeEjwOETzv5BAvPpP1hLKAqEpodZx954So2MgA7KxJ95fqQ9qT4990SqGv0BkBexJyGuQcfk2zSFo7mywPksVd9O14WKhnHIYg18N/C+8DdGgt78OvWeB0GcKOE8Qtkm2tQWN9EfhU3yqnr2QSqIoW1parhS70DKvDPvjxliEHTa0ZqRwcUIgLwB/81HVvpFN2+bKsJJEJQz79Su3REFv8q4Ms07LdQTO8iYvXIJAFpxIEm+yynsheXRDLX7euIPfHp/Rd7p0wXZd+KekChe/PgxVXS40+iO/ZP9knUNJAXlh4rKdHJqgHlsND6WPr0msJqb6p2vnCh6I5smTk9biiKwVqD6FRvUITg4XqZirXQse9yq7ffAj4zRXl8epKDYry5OU6uBzkhtgZ3VG+OG33HV5dKuKFF02iNPN6z9Yx4G2f1rvyB4a8xHhBclOOkmPWarSorE8v0N+nElnFxl3clr0i9K1mlPsk7Ix435+507vHy1TonMCqOGdAELSIhV+MYAEceTDXq5SkS5r0WAbaeqvd1vNO4u+GqS18H3FCjdorRnIEj6roPJ+olZ44hXCfmxJz7wlStigzXx+qetGWmdvNvWpa+CqOWrxTzSpn+T+J/M7N+c85VzDyOEQuVG2Ear1SASgseZLq5eUW6bQOEQX5fTc+7FqkQveGNh1Ce8Qf74OKjJSL1HiPAR8RKOpxsiE8k6cw0zABkYJEZlqTRjrYX8iLm2+DYXy+coirOArIj/Jznd328j2m6hWMrfMHYitc3FroCS1laHyISO1ztaKnJLWRgDmnNThRPZrhTt848x3Yuma3o0I2MNu28KNiIpbHaU/L3Fultx1eeq4sZ76T43eBL0Eyhw8nFE4MqwULtLgc2Dtp0fvEHkJIkr3xQWKjrovfsm6gQv6xi8ADrBHeiV4TisqP1zIzyx53TQA6DGXxA7BHIq2U/LUPJFIJO3ONRzvkpF4DF5XMIU/LztVkzLQ9kAcdBvCkb7RpmW4PrYyMROzbuE8jYBHfTVI6xubE0ttLSSemoFAmE8cPM2GdfK/g4gdpjyfeLDxwDHAmL8hsVTMozN1YY2cWG4wLe6dccU1dfR4jHrGX7cTL1eD9aL9AWTOISbRN2qKkzqbcoVRACWU/H4hIXRFvk0bCFc3G X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8680f954-93aa-4565-2d6e-08db80f521a5 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:12.4946 (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: 9x4lX0+ZJWPqCb8xNLpNeLP0CnAGHiEQaKtYoI6Ju/Wu1VTysktF/BbShQ+lXbqTonwSiKZ5JrVaBN8bYL9oRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4488 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003377235439981 X-GMAIL-MSGID: 1771003377235439981 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-pre.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-pre.c b/drivers/gpu/ipu-v3/ipu-pre.c index ad82c9e0252f..aef984a43190 100644 --- a/drivers/gpu/ipu-v3/ipu-pre.c +++ b/drivers/gpu/ipu-v3/ipu-pre.c @@ -271,15 +271,13 @@ u32 ipu_pre_get_baddr(struct ipu_pre *pre) static int ipu_pre_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ipu_pre *pre; pre = devm_kzalloc(dev, sizeof(*pre), GFP_KERNEL); if (!pre) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pre->regs = devm_ioremap_resource(&pdev->dev, res); + pre->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pre->regs)) return PTR_ERR(pre->regs); From patchwork Mon Jul 10 03:23:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117567 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4749838vqx; Sun, 9 Jul 2023 20:26:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+XaoK4ReI8Ees4eBBarsotCJC0PfuxnVs78qSkOPSpdJH4fddvSIH3fV8HCBCQxAH6T4C X-Received: by 2002:a17:907:2c66:b0:988:c7b0:7e7a with SMTP id ib6-20020a1709072c6600b00988c7b07e7amr11395386ejc.34.1688959619560; Sun, 09 Jul 2023 20:26:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959619; cv=pass; d=google.com; s=arc-20160816; b=mxQ7/r/y4olxB5GAtYJOMisSUu26NrgwV+FwG+uN86jjiQ/ZL3usVQRZcX7V2U8Znb twt3odF5/XL4gIO6q+TqrYN+1JJytvOv002TQ7CjmNeqR3MHeLNbtGxSzt8UEsD2J7/s puPGc5Ci8+gB7kPIlUzcn6gfTOx/FA4GL/4meKvL/5nOb7Zl/j095WulSKhM8/YUhmtj K3HGxsxy8xkG8HoDKoW62vEwQVV6/f9xUHJBBFPRCJwXTEjjIuxbWLrCZWWwtRcQQa4J t6oLuW49eQUAI+nitpQdH2pO9ixBcWCntRihiUS0L0J6epb9BPoPX3Qwx+A+j1dtQQlV kW6Q== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; fh=Oh/HOE0AiPxeKVXP0lvD0UnG5r2/XcF4myx1pA2e5lg=; b=XdOMOGnKdt6idk+2rHh7F/+YNyJbQPxdUhMDlJ9ECmE84T2nQTGnQidP9OhwqHT0k3 xGCL9e6k8bVzrkdCzRutkMjnpVkI/us99+gvS6bpMEAp5ueGgbYOJGjwRZg0Fl0enc0l AgE4LmqnPqon7i9S+OwW8SQ3yDDI1T9OVVFc1lTV+R641Yg/Zz78+MzxtA2yOTKuwhU0 2gCuSSZQyPT/DeYG+GGzJyOH9lcs70Ui82Ve13EwaixHZJbfiUmK9pZMl4G2kpOULQ3o +gDLq/0FJy1A+hWUAMnsq6ZwUqRLzFr1Wng6jqHbnxoIvPrQjCY8EtGwXRIATo/I3KaR lajg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Jq8jIvWf; 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 q7-20020a1709060e4700b00991ece4c959si8382517eji.532.2023.07.09.20.26.24; Sun, 09 Jul 2023 20:26:59 -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=Jq8jIvWf; 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 S229956AbjGJDYX (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjGJDYT (ORCPT ); Sun, 9 Jul 2023 23:24:19 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AFF1AB for ; Sun, 9 Jul 2023 20:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TR1JtZIo5R6dUkLRH8KKfx1N5KSmY/Nfl72/i+gqgRKlkp7q9J95U2CUzAYM8HsSQ0psFge9kZas60ukJjlz9ZcaGvaF1TrbIYypyrUrbBvZRhRAuwWjcDcaHRzSTSnRgyK8nbohV9U/vvRfBTb1OjBXMb1FRblNRHMPratr3RwOC3iUSxRBecIVApyF2mFZI0qIkB/nwFiidQwXmc3NnYCpjXN97ML/9cGsfTPtEOwaRmGo73CIsW+dIQE2pnkgEUBGPHyuQJLFEe/HcrGBc9SBnKQK0NdiA+I3aKf8wC4hwEzr/dd1JkJk20/eH6bMfT9XqA8ybyuIF8HkYgErJA== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=lMgpGuQwoe+6OuXclMggOk5HQKqAU5RCp9XhOU0Lq/8KvmFb31ZycuKwrKCznbd4BRGuA1KVfgfEqIc2zWphIbycElKJnn4U9c3cvHwdife08C518RylFczbHCRlK0+ZXbZu+YIZIhPkME63JXBhBdkAunL5A423XneLu6ZWYJ9wY8aVKj5AKCwo3u/Uu+OSgOCxpgQVanODR15r5l+P8HSbWHfplKMkfh86j6Fv0m/SdAcJgjxBfd6HvXU1Fuwr+jktzMZNA3r1NHY5fNAZkwQBIUaMhTRS2rbKH4laJ5hovZ5jFnGy4/agDLI0l77mjmTSXDe8fxPVWvjBKvMmYw== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=Jq8jIvWfMx/prH1NRUWKxFeYusmNnQ/L8BUlkcxfr9OCRrkoo0dqq2gvGYLcvVmX9UByQFauCNnBNvwcVKzVDMo6ZroL70RVR5xZLLuD0HRRax+jHFjvBQYmm01cWCJL3vATGQdbOuBkv5vDAuY4Y29m3jGcY6rhrj1gyG/fpPtQStu4WGg5deg9rRNAb7SnA8XrdC487ZKk4VpK85/pmfQZxxw7enzlVuU+56ipgYK5glJbisySNhHoYi2fZB7qssoP7+2pLFQHj2AskR+qNIoXtNVpd+MId8c75nZNT/WgPuCqba5k2JGG4QjAEPincMteCcwNWwP6c/sI5GLDKw== 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:14 +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:14 +0000 From: Yangtao Li To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/19] drm/rockchip: dsi: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:39 +0800 Message-Id: <20230710032355.72914-3-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> 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: b9b0c196-5ec2-4bfc-5aa7-08db80f52308 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MbBUmsKHKP6IGMKfoLaXU9r9fgiVZzjJ7fsoO2o2xYVfScIl/1cXfXwXtcoXBa5tESfQM2oU0qWpPyzbQXEaUkzUrr5eXtMgP8ohoUQjPVTILoIZ336uAjrYY4kvFNXfI1bIr1Q4BfnsC5OSFfMZlOBBL2wI2Fi59aV2RruunXRWqwTih7Gv2Qvy0GaqkPT6+Bjy1fWCjvBseCRhM/lYR0Jg82FIJcpj5a3wnJHQp4LjqRhuBxnb02ikEOlls9Wgbb06m4vFRvQUjJa97GEBt9+4aOFbEsfBTqiN5dXy776I2/xtMoycg2d73ZgBBgbzL4TNzZC9rQ8ssuB7LUj/dSLlCsM4QwTjQj2nNs0TiNTIyz2k3MNYPc+2j2S3bCZ6eq3GyoF8IuB3qJGh1VY/40g5jASQ+2ru53FaJlaWleh2YHK+YWr8FgOnUsVKbBxtRRSalh0Ni/laiFXrhuxRfRxHjmTE7Ol2XDG/wwp8TlcHgWX1hPD0dQfgDYBc9wExZFvATzkNXrQprfFOCzU/hr8Wrb0EQjaYGADjKyxCYc1tiuZGrwfKIhOhQ6qOG/U3lyiZnWZaSHV4O6hfIr8K51iMwKpxDm45sH36NJZsCBEFFzTFXR/b3RYsyer2UGA0 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)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9yuDcHdFhIBaVrFavN9+cDhtDhQC99K6g2AU8kZJiIHSD2i62bPVw5cOrt4lGcPNqhZmcQpqFKkyK3INIV9u1XM6nGPwmCavyyFfpNN2Z0XrCGeydzbkpZvBLFT7Exuy+O+BrWffa+/U3yUiBPR4u0+DDXUsQqi72gqY8QPwztqzDtQ/FkczV/YF685IfXI6f0nMMuILnYkFz+A2gfGA0fVSbFXTZYIg6QBmTBDVxFHeAXSBRSs0Rwpkw882pP2PCgot5ciluZN8vTUSZsskRajPzctc4h2qfKAWHswB1UiSdnzLPsQtTs96ibUBR5lqemSb2Llxis6bJt1wj4+da6rkv1QQc//6NXZqUOZ3HmatZdWHAgHeN4FQG/Z3Hx+z5tp7g/AKIWcMK3+XXJprU9daV3hpjC7lSiErwb/8aHHJ3Bum55O705G0S+XK0RNzmbMphG324gFHK9LOpgO/qbb6/eQimOcO8JWCYRLFbxNfQ3LY1jlLNijmLcPwBnetfZPW9NyWF3Y8CGgBJp8FS/9c1yI5aSEbYe7UGHrSkc4NENE5P/Z3hez981zf72qYk/KgnPP0bUbtDDbK7Z+ojUvd6CYOsQ/IdDUy9mRQ/dOonf95cSEKUFuVFephamcC/WAQ/LMZcm0s8wXdMAIXTTv1f4qX3OVj+etY9Kt/22JG2agPp8ZST3OS188WTIAuOBnNu5x9BHKl5ga4mlkcCmeofbTX62AS4huqSlAlahPUllgFy7WVjPbLpkJ5QHZcJchcKShHA1N06KSvLAxnw6vDJDquL7Ngj5GNnlXvqjgnRyx+8puf6cJhkssPZDj69rRb8nWcS58bwW8wspYRU8258p1jG6/nv/agA9SmebOLVG0ADkHt1p4j0QMXuZD+W1d8SBm8PqX4ziAbqDl6D1u8q/zffDtHIEeg+PxXrgDMah/M46g93qda4lMxusXiI16uoAYqN5y1InQU8de+pp1SYv+NP3I4lO28pcK/wDQ20xF7bG00yP2WeMePANCFtOYiYtv62Y1hnNFNYYodo5N7rBV7OMHYcmBr/tE544pksalYs25ezgPSBEcvX9nKM+Acoj7Hz3ciKOtPx6LUNlA/QqQ7Lzu+1NKnd33XCnfD9C2DY4QZLDfFP+ZrCawOj45HQ3qNb1daRAHw0StjklVGoW+no2ZPqCAuPZ3ylCzIVqOZ0rrd3wAjteLasZNeWyR0d3UVKK4iEIB3c/lH1xk1FemUCiMbSdiq073JmK88CdVSxbxW+Tup4pQmQoetzgLcuv/FGMwetRxQAYLR4i79kR33nxXG2W3PcMa7irIcAxGeVGWob01ZStWZoneasFvhZbrsYWEJBjCTJJZBvB/LX0IHionmTnNiFgH3zPQ5ouYULttRrNwwyJbabGnI3oHBsPeFxnG+scWOogVUpCV62mhB88GPdEyXtnw25+nQtZuSLDpYyyN66rCPpRv75qDDWSWMNIKOnASpGGZLAB9+8bncLyiYqnp/qWPV8I0SXq8TOPuVl+vmFr9pPbwYAb+63XfqRknzJi7MCap78uNkPAvsmzM2OI1p/aqHOgbEBnqKtxZxEWKIgOpceOEQ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9b0c196-5ec2-4bfc-5aa7-08db80f52308 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:14.8177 (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: yYaAknh+kiV9no3n2bklNcwP1NMjD7CD02zXqcT3qiFRmkLHZ4Zh2q0GZuAnJkZhJc9N4gkgDO7QrkJScKOrXQ== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002521594656450 X-GMAIL-MSGID: 1771002521594656450 Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 917e79951aac..ab57df7c6eab 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1351,8 +1351,7 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) if (!dsi) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->base = devm_ioremap_resource(dev, res); + dsi->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(dsi->base)) { DRM_DEV_ERROR(dev, "Unable to get dsi registers\n"); return PTR_ERR(dsi->base); From patchwork Mon Jul 10 03:23:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4749933vqx; Sun, 9 Jul 2023 20:27:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEx3vT0tkY8kKxQUOe7GMXYw79jHUridghTdivwOUYKz4j9nghOtq6Okg8kw4R2pcB0ndN/ X-Received: by 2002:a17:907:587:b0:988:e365:6231 with SMTP id vw7-20020a170907058700b00988e3656231mr8997304ejb.41.1688959636840; Sun, 09 Jul 2023 20:27:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959636; cv=pass; d=google.com; s=arc-20160816; b=fmrlCtxLr856FFl3Y3hMLV+gQ/5ZOu3Ls5jQxr31fgVZ3qEjAzQ19Y1ifzqM1nA+zT 4wt5o1blqf+F2kvSmploRYeHiS++9aEvza9rZQhsiOyfhZvHBq2doB9CYy3gsblD2MWw ov8kZ6Q84O4XUOtmjp3795tVnA+h7hs7JyDG/1K+3BW6jGtY7F5cbjG5mTShGm5NLKCR SAyXnQ5qHZZIrQ8GxYg3ZDZzkBxRoPqldNge4mLH9UspfGudXvUOMrh+V41P91mgxz4X WDLy9Bja5X4asEpKEmDpfvg373cnviTR5kVF6xmE0+5ceMKrDkFFilPyTnBgII2XPNou E+Bw== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; fh=MV5E4wowCazqbcJaVtidHWlRfk4k3yRrOp8IlnZMeZA=; b=baCb1E1w8Muk7+eCBmS6h/CE2BvKssTGV0bAoJUe4jmWccnt0dkNeRvOWJXk6H1rpN aSL7BDZ27mfMv52zeC6XDW4gm1w1f/QfTg2mMCx/6Q79n5/f2S99JV7CFncRoJKVu801 SMIXDCKkP28zCmudTy1vT6fLac7xqUrqqKRvLAKALssBW5GXtWiT50ui7F++iQNausSy zfn+DRI4wXRihAKopVrMtPUqoyO716OgWgaCQUTyOUsXUUd5ch9IeuQfZRv3VhCXSkvz DP08KW9ktK1C+jE1vfisf93bNTgw9xldq/CuQYczqqrUw6/EzoygtBdCN/sj4PMyPeTD AtCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VZkcqzYX; 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 s18-20020a170906c31200b00992b3c5c752si7654503ejz.1047.2023.07.09.20.26.53; Sun, 09 Jul 2023 20:27: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=VZkcqzYX; 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 S230083AbjGJDYa (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbjGJDYV (ORCPT ); Sun, 9 Jul 2023 23:24:21 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E9D102 for ; Sun, 9 Jul 2023 20:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hHeuc31IdyZkHj0+1cMzAj0m7Daolm4xisMkFVk8qNiBpSGoiUzm/g6Mmajn6oD/02R7t7YcncuO07rxkxqiAwUVfaiRqdjVKdsVkZglp+WuaLR2+Ijvir+y2pjvLNJMKYxp3wjzxfMlIcWpl9Um1Shs3VCnMyxoHmaCjIvv00Ux/BISgxZIdKxfQKdhI0OW3F2UN/uqJjR5k0T8+06v2RZsb600Dcak28/6xKLteUtV9lKfRNOS9vfNh6M9idq4b5oyfpiUIgluE3cmZKM0zMI8GPAd2twgZWBnLx32HaruzmM7PZgc1lFkeA8w6lgYEl4+J/vUb/vgIzHN8/RiRA== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; b=MOK05WKn6jwPsOqFYJcAui5D1I20TlG8NTyye0PFNltDyvvAw+7B8Mws02kmjePTwPQSVsG0yAkQ8g08UG6ER2nVu3aPwE+g7XFn/eq5Pma/YkeIvpdRLQSVgbLvvwFn58WaAcUdRjIOfiYwwzIV1zuP2eG9pCdmNlJDtAzez6fynMAKygQDWn2RkhaKLTsXZSBfQXaludH9yY4AgQY9ZNR0tYeZqlURCzPhiHhD4upSxLHfs5h/caOHM1MRhqDWdU+eXOvWW3mz8sqDI221Z0gWVPZwJrx130zX5diN1U9rioOKakb6uHl9Fp/B2zZU6zE0qLUCi3GNOKHb/ZltSQ== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; b=VZkcqzYX/WMbdjbDoE9wWLYrWaWfSL/lD7LdSCUdRLBReX016Lu5ZSvJno0AMOAY9Qu58/kmdhL8ovZPRqcLPVCK0dehrYixpDDlb1FoBXsUgZUzxZsT8dcN52NtztvxUkx7iLc3lALDkOzwQ2k2IkYpCexCAV+S7kbq8JI/Uxg+wHLuh1CX9sx+utLk44bJi1i5E6AlO990xbkdHxNwR0qaNj3eNzBeRD5AGV+vXvHIsGt70beir4Q3Ou8JORlJhctTwL/Uu/+Sphs13XnSjbDcyqAdVs/WJtkAFlsENBYzzGBxFuoEJ6i/soxh3SJOhfod6JmHRKGuasC5ADkefw== 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:17 +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:17 +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 v2 04/19] drm: kirin: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:40 +0800 Message-Id: <20230710032355.72914-4-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> 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: 587eaa09-7ae4-4a58-7308-08db80f52477 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Z25cArspUJvwasUlIjK93obRKedyqNODHZ7TouTnUTiksbvERrzZTr0oASsVu4oovpG0KPwVX5cRo5leFgZZ527nOYcapGDpj6pEUWPmX4vKt9eOUM/cn4YtUC5ul/WhvTUd+wpRoaswYCLmc1EwcUMgqZc/rg/uXgJ+SDUmgJE/yWIhB88dYyY5Wtw7jfwokJkgGnXQok2BfWI9BU3+KBBhEj0sSh935Vf7Mn9MzQcJexYm0tLw5r6XLMf9XGBECk2DREPOsRMc4q8sPbRxWPxGGXGHj8w0tBR6fL76sElKISpT+LBl0cnstk+6VO/pZCzx1vcSQGuBPa4RQqxqwFOs5VIaMqb1R3YwjSM35GVz1AB4vI+JutJVI5FfBdIHhjnI/1bGZ1yH/gQQEpUO230TFbGdXYI78E1/vHuEKmZsFITKJgJlVG/j1Lrnc525DAIGZr/0/Achp2WqHKqPn0YpSXJfwcnqbaPaaLL8cwKDexdsMJjM5V5j9Vy0vTS95/ruL074mh5LgZt20v3U5HVqs2J3s7xgltwEAeafZ2CftclhlxwwFDW1XF9Ru/k5oP/pysvBlaeGwOZ+IZxYE+DyyYOMHIfzu63X8oBBDJVrFA12LxRDNkW3QZoM5Cc 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)(7416002)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EnGKCsB5md+YlB+ROyOrrLwG6pQtIFtHelx6f1AnmCwbRuFrMF5Nhh1d+dcwyL662/gcrUWhVcXdf3Kj0bOmHMt8QmMezB44cRRSU62+liV2KdAat5eYynVs3wlNWKAQlKpz0yF5a7IvtD9shRz7/vvuxyghC2d+bitrscwz36PHVnnyecu6ZUkLZWVFRjt7Eyivw6a2f+0XSEEPp9wPZmVcFztVjpYevbntRMv4X+phW8LUZYe+SKWqv0sLLLUfxsimaeISiXUZN+fduVDdHCwxYLbJGDB70RgMT7n5HH+Qa7sUM6Y3fdJdrVtR5YgsNSsD/8hVxHOeRiyAGtKcA4Pwq1pUvFA9l7HkpEkdavIrGwrP3GqrU0NH7LlXC42aQtJevj1ohzHj68fp82bglNUJ1a75ea2bn4dcG9r88GREFRYaPe+Ywa8KwcFGdMtZOSGCA1EqYSRhJJ7DtvgZDve9+YjjpRuXEW2nc8RLElsraBwnG20Ri2OxCDEbxRLi6MMg5p7K5TbbW4foXxmOoNn356k0aVagkrkeKfesDKXg0Vv9pQIMMwRpftaTZ5PjW3z/9314swYddcacsRAj05FLnQen7uTqnax0pbp2sHYnFnjhotLwjk7QD/nhqdyuz6eMFzNC2RVvU/QmKbX/4iQafYzrFaPh8BeW6Yd0sCiO6vqHdCHDlTCy1wvXaXMgUBXfP3RXcMTjooXpvy2s0lCvZoDAn5yuG4m/tPUmsTWjir7ejlCNT2rQnnG5jl3i0Z3K+egYNppp7YmPC3coecP4IhusBQIYg5ed2of3o2RO2joKOPgJ85XFJ1F5EaS4j3tmmKRSghQPoPkagkIPpGOj6NTzImutw7VJuUFnJ6D5W7zjqEAqLELAU2N7Ptv+DL7qe9/cRGgD9/Qb0fH1MclfM1c/zLJ2Dj8muIrooG5wExT5K9wk5hZ6E4D4nniBB2W92yjv7kXjyJPwnEftCmIjf2JJA+UMZFpTY0b6toVcSgTbQpOgME30tquYrcz5vVsVZyIKs6GQUL3XUhqIFCGFBHMChrj24sUaBk0LKHrTyhXKIQZuhbSB002eg6rscOWPlU+UuKLTsvWrjrw6nX+yklcCLR96VLoiUsOZJWF9cvyRpvjZ6p7dKPAHADPRgSOz+FZ+3mWo+brjxGJP/It2yPDjTFgCHHOgtbRKzYpfPs7gJ3onJuE75MKcKjjrJ/QgLH2LA1StlUbw2tXIZQLZAhAgoMo5jkc590RrYhIYf1SxbQlrokX3do/iv6F5W1D56nP0XGyeusf+Y7ylY+dymx4Lf04Q6QC7QyCBNcFoWpQDm8A0UN2KVDZJzUUP914ydidL+gf6CXnGZDWyYeAZzYM4OZP7dqEvspYcG5UE7dXH2fIQ392pyIA6Y0Uui5whudNU5vvDs9l9hAFQekjySVrGcV9JnHtjIEol3Q/OSeVaTgWrfHQAeWmC04bXoSnolcQ49Pb6jSXLgun1FS2ke0b0w3YOw4qqTxaF+XvSa5VUGmNDHwb5BCi7vs4nW31ZVfCWq4p3xh7NmrPUmJsMWR5Ht6R/JBtU1RKAYzFw/DsbZzfoYPHkNukFLQPl X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 587eaa09-7ae4-4a58-7308-08db80f52477 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:17.2221 (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: dzz6wY631o5BMCVAOOpK+kRSwoNTbSSLYJA6IYGZgcDopP1Gl1Trr7Hbw4xZ6uLY3Vy2EpTUmjy8GlWq2YXhtQ== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002540184807714 X-GMAIL-MSGID: 1771002540184807714 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 871f79a6b17e..42ae68c70880 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -843,7 +843,6 @@ static struct drm_plane_funcs ade_plane_funcs = { static void *ade_hw_ctx_alloc(struct platform_device *pdev, struct drm_crtc *crtc) { - struct resource *res; struct device *dev = &pdev->dev; struct device_node *np = pdev->dev.of_node; struct ade_hw_ctx *ctx = NULL; @@ -855,8 +854,7 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev, return ERR_PTR(-ENOMEM); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctx->base = devm_ioremap_resource(dev, res); + ctx->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ctx->base)) { DRM_ERROR("failed to remap ade io base\n"); return ERR_PTR(-EIO); From patchwork Mon Jul 10 03:23:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4752249vqx; Sun, 9 Jul 2023 20:33:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6NsPtN4iKvYthPARpMCrSYZ3Kgvo84dH2MYO3cjbIWp2cHdcsN7uj1NnFJq17ozwclLr9 X-Received: by 2002:a17:907:c9aa:b0:986:d833:3cf9 with SMTP id uj42-20020a170907c9aa00b00986d8333cf9mr10367218ejc.39.1688960033735; Sun, 09 Jul 2023 20:33:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960033; cv=pass; d=google.com; s=arc-20160816; b=jU4/u16WQMqs038NyCP1oo5UaBvkA/jhyAGtZvJnDm+eEneUbmWd4cbudYhCEGe5NM WPeRwqw0nJ8m+fvzi3vlZXTLCv7JDLx2b/mZr0kHUHjkJtAMFVdaEs1vnoVtXYGlcKc1 +PRi7Ve+XrgcqCZVx9kwmqH7BHsYz2fn7Kl/wjkWMxCZ453IgkUda42BBuQarT99C9De +PB7OHo6nW1A1/f1XFEnfY0g6EQ3gbVQSZ0JRebDsM+UcNxsf7fEJUWh/DQ1cFxfsTRg +ks1JWdM3fIs6+QAsXLUff3vWyNqROKNeyLfN/UyhVrJgnjp+vfROsxFzoXnsa0yu7MM QbpQ== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=IIyGVpsG4wE00YHiHb/9PyQr7/Eps6vabHe6nk6arZ9p+8P21ivP4a1Kp7zTedvHzv ngzNfqXIDFZqkdDMvbmycGB0fIvPrRQZq5aD6XEDJ/XDnyFvdmv1Ev2ETpSKv5B2o0yx cD2XbDR6pXH8nZRzxMZJcOu2fwnbWAKzhtgb0Wp5jC9g5L7iaYxPuv+g2QphXSuh9KBO NLxjKZjjrQutkaBnKPEhFV4HFT20IynJ/YtT+DIB4fzfgvLUbCo4UyK/ZcKT9AOf3i1Q bcNI+ysopDpQUTiL0sx4R0+gYiuQefSusXtsjjT4Ta6Il3SdBU1fjOw8Cx+vMGMu30qS AKXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mwFbgMTj; 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 f5-20020a170906824500b0099364d9f0edsi7559005ejx.402.2023.07.09.20.33.30; Sun, 09 Jul 2023 20:33:53 -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=mwFbgMTj; 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 S230120AbjGJDYh (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjGJDYY (ORCPT ); Sun, 9 Jul 2023 23:24:24 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2091.outbound.protection.outlook.com [40.107.117.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D588AB; Sun, 9 Jul 2023 20:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HoMU1eS363rGzlSlxG/nY0Tce946hFbBFYM54FHL6NRZbDHp5b1bjI6DKLafN4VG9txYUsZ9j7Gzg0Ufda1agApsqueK4brXKKFAODLdTaTyBkqjfrWNzxm4mhmHdvyA1IjPiJH5Fj7RcsIGCYoFR8db0bNgxAePn3z36RyJPbMKK8w7FdobpML/2xdm5g7CPaaL5qOMcOX8KXmmSpbbYjZGy9l4acLL/WLBjxwZdEEdBLzNoguliwEUjEIi1kvYAKyMx92saflTIFLEhkblOaWms9MilSWNdUqllqANiqY5InrGEneiVZNqhkYxStz24Y/irSwhTbYIXJocvQbo1Q== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=AzPmEG3EZuOfggJpGYEci4rIsHDENH0DQSTCNILuB0jSktPdM3Gdxq/Da449ApklMl2qTrYcFcyyl4wpQvcDDTi8NRB/r/qwp09fwrNOstmkQ/D8YA636cewM11juovlZjdPXNFPkPM2Yfbx8+n1PGnjvoHvLyJ6wPIn1OLYmL/yxzorp9fswS38Gt2Y3mNH/pSnV8eMHm6PDJ/LwjETJeIt1kb+PNCnCQvpCoFwgeI9C3eh9UXspj3WZmO1PKL8KdAV6YjbgU/InmOio22yVUK9XskjAKnkyIJJjNHzkFJ8mhZEhUqzZ9sdzr3n/p87zfHct3m8vJvzTiLrg6pU5A== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=mwFbgMTjrxDJXoebI9FYpJL727HSqlL3Nfaaf0AZk4NnP5hXTt5d3FkwwjN9T0aliCOXCj7IEPYh/wjL51/YwM36ONesdQsAI2pfa9G1diFWZwAhl14ssXwL2DwnYTFdODg9HbQV0P3WbcHeODBZHkuGgbU6lFg0abVudIfMep3SmAapSdT8QXD5EcT9SW+SEIA3QiBqaJ9+GAZ2NDxYSAPfFEOjeFXlW6sIVQ47z0BYAt9xt2pedg1Hoa2syQ/BUQou2GN4x6pEARxN/rpfJFaYbz9SpCbFS1kgq0V0ajHonBuOtqb3DHo/ARtbSqjN4L9i/PItduD33Zz+7aORvg== 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:19 +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:19 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/19] drm/tegra: hdmi: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:41 +0800 Message-Id: <20230710032355.72914-5-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> 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: 079491d3-1f8f-44c2-4ffb-08db80f525eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4H0WPUrEY8T14llq9Wx7v+otZ7snWgu8NeHjCEk3noFn/eBOnqJqjHY0m/moJdDk9tPSetrgl6pta64PghynXezmFptk9hJHp3OFI98r+JiKYP/czvp7JaX1aN6hOWcqiZ2H/zYaN1ykn183TGN7Lzl36YnnyGrTJcGib5uR0CAOfL7LhCuCwZi7e8O+vHn77e42b6r0BOnUXY0iCTrRbZGp8JAvTmm18MAxWOUWHAFRrbYvpx+ILHLOjC1vUqUi1I3QTqa9drebZQ+t7tappXNT9ai8SFrg1QpX2ygNbflqp00l2Klx+Ap2dA5BR+Vc29TQCRuTolBXC1mwtJmja4Ve1BShmlRe++bIuwV9605mx3Wd1At2A/ck3Ap8fxCb6K+ONhE44Qo9DaAqMuZx6ozxZEsS4Z+5bHHTUjHFh8+6vBUTQhtGKBhg1VPkYFj4GnDqJ9Kz5wrL8vD1W/oDhnemgXMuluEa28jTiRDdqGi/e8BBYvphMtvF8s2xVN9BgW/N2Qu21FzGFx1sCHZvt6XJThC3G368CsEaTms6O+nTImFvyD051G8jzbie0gFJo5/q4yKpLYaA5dHfCoSLfiYQqt//x8AQ7rO1b4tuzB9U/UOF6e3A3lKMnflLj6Ko 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)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(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: 3qSkkuTXhzpXb1MKhWC+GFGJSJuFg9wsFigSa/9V41XzVE5ramWZuKrAZP/2HM7APxsB7NAI/HM80ozeuiKSKvuaJnNtXU4cVLQp9BietkS3yEH3dhpjnMut3UgkneYSqHrgYHyyGWTl675xDd5jDBeLCP5mSGcxgJp3cftV6FNo+fNIu94JaE1LkDGdRxBtsqOovRHNB6a8+1pVDyfOnUYpCEfr0sosfGoVaKRkBaojKj7emCvb99MLMosUgZmSQi6ua9yRKyP8LavMMm7KZhP12A0n73Fa1kSJl8gPjTdJV1YD4Uc3f7N7WDjbqHtHApOp1sTLHFIbV7xS7oKKz5ICVqEMWQZNblxXcBwqqtgHQl6+tngk4J1mMrvpj6fNOwQJPih438eZKbAksnOUg/v65bLfEhMCGooYJWan/KO7Nezs1wsN8VMFJyWjg4szjCSQxcf4rAxxJu/rXGMD3HmUpyb9cnT2oqZgilsky4j+plrMboNmk7gn4PFdV8yZunXzwQg2BnhxuvlZNz5tjuFJz2lo9P09boAE36sgnA+iaz78xiQLp9gOCXxzzvuv65xgWxsZPdn7sCBdekJ7TeFZ68ttXEAewpYs2TeRGiQmH9c+Y/FYiO8r5f1QkeKadzcDvKCo+0+rsompdzHBwqecHUc90kcETohLm7JNUAA55Ne3XaWbzFtHeHCipT4ZWgFTIwACMhokZrMEb/e7EUgKtTm8YEPrEK9hVVO757gxVN2xcTPw1gF4FBcLm2oI6+B2o0Tgum47uXCrc1wjFHHoEhX0nDd6yJaqCVsKqKbVAxCYsLq+Y1+zRTi5VW4TKLVoO0QeHtH5M3d+s7gX0+1RY0tr59qgO7nRig7cdPmPSXPPh7IsQ4Q75x/ePStZ9xONSmdy4YsdQmuvuIHB8vLM5yJ8t6p+w183jPCQXGgprOU9Gb+khp4Lh5N1IGLiEB3kXSSWU3hlegQBy8MMFU1a2aOPUXgWW0cq0lc6+/Sk8d15vJCusvFS1LikMfusjMMBCTAABiZftYuDZXQLqQCij4TBjYQpTdnbAZD4dS49cE1bFMDyDG8RiQzsMhp4pxfziAG7a0cfvm7rJCksniavuFU00s94zcYEZnYCjugeajyFx62ygC8MYCIvY8lhRDcZEe2RvmY3h4n5S0LX/R1nat01pcOD5lhyN1DNaFtoTUIE5/Dz3s2DBQ4EBIZUgMeqDdHqPq4Inlz4mb/MHg0JDF1lnxpBJIbP9ohAyxgzOHMnzJESluis/J20ivqS7ju7LvebmANOqzOAiA9jtfKxgf35L0jrUguDeHAUWNmQ8dszrWAFN+P7Coy3+cyjBVknrzB3922slNXqVUPTDcfDs48LqyLp1KFbN3It+Q/MKxO/0YlwCMUx/ODC3kHUXpN6kArHjgCQxKmo2Cj7GYcpL4nu9hqmOVxryQhjh30nZeny2q8e/r8ntjCD5w8X8OcLcdH9T4334K3bx5tlyIBQZ8F4WVIgdbH3rAjw3zUGmrDdcpMHg0AhjfklJ0EiXpsvoCR//nsTAqySFQToiqo6GuObafC2ncd4HoLdC1YGb/xYKEhlVll+iouoTNpV X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 079491d3-1f8f-44c2-4ffb-08db80f525eb 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:19.6694 (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: UcKyYI3Fo+ien4dmo63b7ehY5rvklc0qY1plp5yrKM478iuSZASNIbI6MnidXjjiFjd0oed8mHCFp8lbwOEvDw== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002955950184046 X-GMAIL-MSGID: 1771002955950184046 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 6eac54ae1205..f3a44ca87151 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1769,7 +1769,6 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data) static int tegra_hdmi_probe(struct platform_device *pdev) { struct tegra_hdmi *hdmi; - struct resource *regs; int err; hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); @@ -1831,8 +1830,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev) if (err < 0) return err; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); + hdmi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs); From patchwork Mon Jul 10 03:23:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4751696vqx; Sun, 9 Jul 2023 20:32:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7FvpLU5pnLdDL6AY4xPktZ92KV9Q/b8rfINEFR7AgM8yuIBDdqczdtibii2mnKgD+2Zqf X-Received: by 2002:a17:903:1205:b0:1b5:5059:e733 with SMTP id l5-20020a170903120500b001b55059e733mr10962427plh.17.1688959933834; Sun, 09 Jul 2023 20:32:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959933; cv=pass; d=google.com; s=arc-20160816; b=NLNFm1Qi/6TnPPcj8HuDXvIpd2tZvgxos00OKvMvKI9PTDBkmryjVv1EV4Elyjy7bX GnMrzAn8GjabW+lZIToYElaZFrnLMq8GemSHt0Z+AbZAdJVaMu0pUQa+wNeFxdkwYCdA jgEXkydOI5BoX4vLdsRWPfTaW1Xb0Mj0U0mrLFpIw1BMRPzu9MmZKwfHzoN9f3rVcGrL k9pYE1IIfXmyyCEbEK0z2kKUCqELrPZfePkDTn5NWMG9lhYc4YP5PjvZb89rjE4H9PJH 1Lbadek1f+aYUbKeKzKn5EJnsEGyyryZ6TL7ihg/upzV0YcI2Hmm2alpxs26Kju9axvI Wwcg== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=EYPsz3KxlIt1jsA/Iz1bfu00aDHjeaxf/RHCl9GOGws2g0aSgfJXSzwqHV9IxbffCB cqL/J7Xo1GoY5yTQbaGn5p+Nb31lii/4uh8gJZeNGCIJxJFaxpYPY6PYWqfCB+7cSfU0 c+YFDsjrIp4kN7qCo+17mNAmFcdm07YhSzvCs2TcidLfI+YDVWh1yNT/9QaNMsAeSFQ1 OFHez86U9n0i+o6NLCX4ompoOpKU6KxLZ3EGTBveuMDSzqoYStUGnwClnVvbCXcsDaI7 h7XbShfsKDmgAyucgAHrbbSNhD3igPolI02ybghD4WsnfDLNQsghb3YLyZ69C4exgse+ wYgw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pDaWgdm1; 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 f9-20020a170902ce8900b001b9be3b94dfsi6779810plg.268.2023.07.09.20.32.01; Sun, 09 Jul 2023 20:32:13 -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=pDaWgdm1; 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 S230110AbjGJDYd (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjGJDYZ (ORCPT ); Sun, 9 Jul 2023 23:24:25 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2091.outbound.protection.outlook.com [40.107.117.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73ED4FA for ; Sun, 9 Jul 2023 20:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jUh/ihRWK4xW3J/S4jGah5VrCYWDFxK1OWJjXa7hRC/OUJnU6XEnaduvAhn4Hr6FlxocsgHFjfYkwy3MyEoklHI0DnTZt7uEEPnLd2UIX7JuJlYTzHDB2ZWUV9Jil+TNRpRA+TZXPKjzjO3SGiinnWtBnz8D+lsxgBy3xWVxMwKpTkzJOsynC9nhsPdLVKdI+A7vfiNPBNe5jS16kCIxgp7pRMP4TIaw6w3A57+KvQDD4VrUo4h+lEbAIBsq2ckEDmvKAHMcPih4LdXtb+CS7ADjhrCfeXEFW2U80+X04mQd+okwYXYh+8ob9MmgCew19P2pIM3rpumId8PGuV34Ew== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; b=KYvpsJIFp81q4Rm8yfx8wiyXcsfdg4QEhV02lGWUBHkxzdrHnOAPEDg/LK1Sn3TLR2wE5Ppwy4sg/zfxYgh1qi51xtPLNrLEJ768SRx6zLXOKOVukoZRKMAPR42IMhzeyGIjyyj3yep3pXnFo/HS+fvlV5yGMBlRcvT1zFfgT5a2TWoe8yoK4YZcIUHPakBdQ2CpN2JcZHuOpYggOPsyS6I9Sl+u+O7DKOpCdi6dm2fBiZaShre4t/teOluxYNXm8DcVIsEaAjOYr6Lfgo66oLNnrBQp48G+ulIytI333aTPBSKittZrclH7U9kKjdtqoRGOHu1kpVYWEJCd5M5YhA== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; b=pDaWgdm1xZ2eDEFkCtFCcEs2Pj7kWFGUmqBbo3dd7GGY4KgK8THAtRG+++ZEor6isYlrwoVU0/2Tv6Li6jtwGmDWJv8M/EPhVk1QLAfrYQa7OTS1cCX5dNxowziGU2GgYGe7BDtopy88nbR24jTYOEZC5x7As5QJRJmb5JZD0IjOTV+3l+qiv9J6KYyhh/T56C6Yj64lG1n+wNDfv01ynNqk/IV/uMkk2xK4uG3KNRhICe47TIAwiKuEmCU8mCuf5HErfWlB/0iYOEl9QrU+EU+nhiYfoxgEh0CawUOfn7MSn2a5lQnBS5MxiEvsOkiqEoTvycSjrk+7/EVrDtalng== 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:22 +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:22 +0000 From: Yangtao Li To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/19] drm: bridge: dw_hdmi: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:42 +0800 Message-Id: <20230710032355.72914-6-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> 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: 6ccdee01-41ff-4c15-a101-08db80f52774 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jitNmo9ZvTayjMgJeeOGQnloNoQeFXg7IhlS3e5vwCETXorcJ4gpNGnwmlJk4htL/42jYXmPLRq5kCfpTDhUACA393yUfNau8By0cOiBBa0hxvvDZ0f2Bf+PjEKqhIU7WL7gw9wZIPWz+FRWeDBMe6y7jCSrAxLXUKpe9uoCrJDyb91zLpI3Nv9hoPLNyxUcxfnl7iPHsxu+xReldVgj4KHhj2zezNTWcZaJBdIR8WEyCAF1dFaLvEl/+6yVPcgpkrfblIzBFDEManMTeHYBcg6V2L/FxItyRtjHkB+RtNs/QnV/BtpMblW7uMnt2Ltrmu16sscF8DLdBjvX+ARAmrYXTTDl3wg8HjBAWMb0X5tNTMHoDU0BmGtqJQ30eR52aKc4IiNMLRLWjU6GKycUGaABR9R1nbaza9I5YI3hSuyUGQ9p0Lo29qLaCJK89p9vvIq+RlUNxGv+WtpesH+klH/mTwGOPxpA3kroj/uewPY2ciqC2zMGdEXWdL+8uWbJSbzPI+71Ah+Gs/BGwdgWs6XFeOTPFtlwO79jmnnFAEQpqS9YTQoOypUR3SQXiF4hZ/ww8E+ARFQqXtcREU51hMFU9ONwieaQujilNqoIkvspqSxI5xS9tUfdH2YQGXEG 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)(4744005)(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: U1Sai6yJu8h5n18DeWz/WHmvVEb0FuKLoxwDBnPNFZVaMwauy3ZFGsHl9r3rRS43Fqer6WQtjoW+eFLDr/pcElnibSa+2ZR0QSuTl8yhChoMo1dfzF933ARvYONHqfYzlk60gyY5MRo6WjEqLnKKBEUllkpHKPlrj721BhPu0l+5wynIsVU8Psa0dXjWIJwlUQ3qyAnX5xY5Yd9Nh7UdxWNcevMtRicXUJGxEi8kiCCfydkGi1JrNoMuG9s8LESm3YIkQp1FHsZFygWzs7/2B0HzTtfE6iTkEV/8Hcs+lZSW5GnjBaAdJaN1dPODT9lTsm2yatxirhIQImXUQhuOl3U7f6MnUBKmWq3hyrApHqI91J+OWKnBu/YnDt88DmesNwBCfuPKMmasxrhCOSKbnEMtZwSrJPSFyoI8E7KC+iqcYtsw5xZFVR0XpeBPWxwejy9zIoWmzKDK+FHLVk2HIzDrIIZRvR0I7Wssz4PIfRoZcQt+sLT0tp/gJtpQqhzyW/dAusurVugbPW/kLg/rJ3pZWwTNq3hyWD56jm5+U5mORyCGa+vCSX+qeuTv0f3j6PZqS1/xLa/uGrIK8U2eWT4nqbKue7rqw0QuHvbgoYoUcfgj9Zx9o8Afi4mdecEHpUUu/qTKUkvQLBRe3w+6CUEtdILSKlFmi3J2UlNPVa5F9gLhkm46803GAwHl5KPZT0U4K6kfniipZfWuA7WeU2RjXF2ucKcVjan6qTSXwD3QApKvYZAySxLIZMF84WOmFA2BwOisdCm+ct6dZAJaqe1wBjZZoAfHFnYdF1aYu0GGxy8eFGHtEL5eyBD7y1UpSItE6KrC5PbVw8iK64CMDaOXHpZnZez3NgCQAzGvtHIlOukljQq9OnmOHQDx1e+Vx8bgKFjweSEe4/kn4Ik97oa5A9Uz4lDyOxGgibpLHYsxQsEPnIhnJeCvtiMKVk/wmBwpf+GoLtB+9JqxGb2lfsxAe8Xp3gQBD9T3gkwjgUqQZNiOK9DAdQriCMXJVPJTaSG6rbu0ijnCEc7Y83rkrxzluUDJfX58GkGoKXttSdfuvOPyJotBTSPgS/Rxxxhc9ocRdvPp2CkBWbfRnRVSU4zpucEUEkJhrlhvY0MXophs/r1I+OUOwvYAwDPjr/8vfCbDUnaX+KKC9EuLMePUnLlZd9v7ancfTcGXnQ2nIKeRXPSqVqlhgZJCBbi78Qe1y3TVrJP2gja0PXZTUxtp6z32C7j6ZQ5jOalSm33BnqVS1QRMMeNHkNYF5wDSYZYLY04RXapAUh+udKzCy5xLM/7Ov+J52ZGbrMFDwqJfM7XJ8ShDpNEEmDdq831xSVdVPcip0IQEPVieaBJGa7Lk9Wwl2lRvPOBt00znWBNOwNm3mRvMDObSZrTsNUD0bTvcoOGJrmbMpML7hdeeyIlePZ/Ebm3fVBH525Vc8wi/Bq9Cpp7WBfe+ngeb5XJLYyAfV5gze2AVN75uzJdelD5gAJEXjjkEVPKdj6lAilCCBexg0dKbiUQc4gu1l2xpe//FwEUEjJ1jGNLi4c/946pMKSB+fi2IV0NB1aa2IkGVR9RT6xFUU8oOAFiyurb5LLQX X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ccdee01-41ff-4c15-a101-08db80f52774 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:22.2681 (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: UbRcr3wwFP9PkOyT/MO090GS9o8TO8l9jjZ6w2h3Zd6XJ6jQ1ABs6i09zBT/GXyOc1ZyjTHTq9DbuU4kyWe+wQ== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002851515881209 X-GMAIL-MSGID: 1771002851515881209 Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 7b66f362afd8..b2b320ba2196 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3417,8 +3417,7 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, return ERR_PTR(-EINVAL); } - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(dev, iores); + hdmi->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &iores); if (IS_ERR(hdmi->regs)) { ret = PTR_ERR(hdmi->regs); goto err_res; From patchwork Mon Jul 10 03:23:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4750023vqx; Sun, 9 Jul 2023 20:27:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhJsbgXMFrsDX23k/cpfWF/mmQtaJOl6tFuL0aSxNa9z2RbRigTfQG4K9NSItAtK6GO4+h X-Received: by 2002:a17:907:6e07:b0:98e:1c4b:10e2 with SMTP id sd7-20020a1709076e0700b0098e1c4b10e2mr16673559ejc.20.1688959653064; Sun, 09 Jul 2023 20:27:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959653; cv=pass; d=google.com; s=arc-20160816; b=KRFclBaTNKWLwapm/2UsPqXEwWIx6ejbsjHCd/UDNcERVKZTEWqR4qAP2xzfHdjMe0 T/qtfhGdJ8dE0kWLsVkArhRcaPgfbjC1o5tmcBBoB1vAIUQKFQC+BYwL84fdpWHhLAaw MpvE1hPvbO+LUKuL+zgv2oDNUEU+uYbCy0iDNwHjg5Nj8BoNWEKhQxv4SgUBJrk5wrsZ 346fkIMvnakXYqmlpQqYPgF/d4fopKc7Wo/Z8Ab3li/1LONfpIjuFEvvoq/K8vQCnecT qEawq9X8oV4zTdP5unwGJ/0Y+OPY+ZqB61aqixn0Z/zXMu0Q7sdIOUFSTlJugPC7Lald Rn7Q== 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=knzUxvGvqoz34bQk9/fazohrqw/Viy3iwwLrhFB7wXM=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=ZYQJTfKTPDbCecBntD4maz0gAq0xNXY730GWWFB4yErp5G58kiLkmwXQMKuMRZbwxy KXOD2jPMjKwIldDpee40r2kVUyjKUfMU3ndIvImQJ0xA2i43HGyxByLv4T2mkFp6B+A1 M2f3EYOdXkKtl4+/Mz2VEwB1r0T2rCe7hDTVGAKbY6uxj437I2f4290OU/wU//ioSdGw S+3OQ0wY3/7yJIph/T087KzUeNzRCVZuA/B9OxUEN4sRmPPnOMV2dRHata3zUb1+70Kp Vxful28MFjCM2dzHUg+BqunpC0Z96Ggv43QFx13KlprxUpQmprq5ztAxwgBJsVLcKG2T zqYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JLa7KM9B; 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 a10-20020aa7cf0a000000b0051e0ea53eafsi6742301edy.558.2023.07.09.20.27.09; Sun, 09 Jul 2023 20:27:33 -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=JLa7KM9B; 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 S230180AbjGJDYw (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjGJDYa (ORCPT ); Sun, 9 Jul 2023 23:24:30 -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 A065C107 for ; Sun, 9 Jul 2023 20:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKjrSN1ljoHwony/4/drYtuBqGdP5JpHPEx70+kmSHbTGcsp0Aauyoo4zqpJW1p1dDkJL3m5v6XBW1G1N0ZUjB08/Dd5Nn5SKFflO0jGZ9FUJlq9/9td+Q0nymhtYDsgGqZ5Qz7mNpEXXihlXs4LCywvVKmMj7uBbIgiCkJgmKEtOw/qKq/pTrrq1gpfpyvlk+/DDX5UqxFU0+5I2a3xhNpbIGxtUvCSzor9bqgJvUuEsn3h7Q2XCBh126QUJ9wKbsF+16A9TslyuZCLWQ/nUXzkFiaBt1CClXTmHEfF50vQ+kKkhtKskoW/f/nYgBeSDcIVqP7NsC/AKcT/5WfnfA== 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=knzUxvGvqoz34bQk9/fazohrqw/Viy3iwwLrhFB7wXM=; b=BITkIyuifbp4Wx8WRDESKbskvpbosEcgVVtn36dY2ZGMWt2/7/AJggjPsKms69B+aK5Daekl5ozJvbGKCPYRWLt94JxpOBTXtxZY8VGVwyZhmS8T/jR705uyLTGHveBxX1VOc3+FdgqV4dX2c9tcspFO0pwGjxcxW6HIvDtMB19JXx6mxo4c1lrN3axzSDmgNvcJg6kbGdZ4U7Np/48Mu/YxEqUaDwruVUusaWv/3cRe76Xv7gvBXoZatw0YBPzy6qR/XXJnYZJxY5/PRYeLD6hooWMkQpPyiCBCQhYJcVah4Ebva3okK6slxkMe/XRkWAaVnqNEpgo5cXve10cXVw== 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=knzUxvGvqoz34bQk9/fazohrqw/Viy3iwwLrhFB7wXM=; b=JLa7KM9BVQzPvVsV5MISsLENMYuqRqpkt3WLpOlauRGfmhlch4jVUeV/9iDC/vAqZpuX55fhMf1lgzytfgQWY4vgfYnvDrphFLhMC/RGV9DOuC37GsxDPWjZ34DsO0zM1mDHM2DwjS4nOAIWqz3fwQbMDsFOutIK65fF9KVWRnX8k+5exqldoAzPi0XrjDhtuq0lUDtTAtsffgAzNPEyMHFCWJXkc3coexXncdPKZvVoOO8ajAY16HM5nH6N9hdgOIaBVGZpo/zZ/GaW/2s3BXyygzosTZaMk/TJqaStXcNd6LanZjYTyCMrxU8rPKi4fEkhLEKu1AIFEhOJZisOrQ== 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:24 +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:24 +0000 From: Yangtao Li To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/19] drm/bridge: analogix_dp: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:43 +0800 Message-Id: <20230710032355.72914-7-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> 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: afe32803-3301-435d-cb4d-08db80f528f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AXIhxrmcB+4qckqKt+99vLJtN06VOBKp9liodZo7P4cbKEb1XWJCVnbjnkBlsfZkBNst9JkAqiuHR0OmVNVUXpn5DmuDz7OvYFnag9M/ZZxtodmjP824CjpFBpZheLbuxyU0wZZtmvAEyKAoh4nhDomMn+t4rlTq+FewVf/FHzew/2AC4eOPhAB1scYSC4JIKdvwzicxPQz4ktmpaQAHODWT28FMGmNqUHi2cyLwnTuutUrgcaIuG02H3VUjeJy2from1ilLz4fHrA13l1U6DFmxwO/kUFfIRpHdnoCKvhviA+h7u965tkMtmkAYAQVSRA7QFi/Qy7jXOtZcP8Scz+kJ+wwCMbwL8TnVDz//3Lxk8OVOFPYoYm032Iw1vVDfTVPmZXpRUSNh8k09sVh0xOsfPnviY8g/FSUk990D8FEw6wCgeulQ7X9NlKf8psZvIOZEOpgBBh6Vz/aQWbg8w5UrYFEUdhMDQs/gjGhbykRiLoy7gfhP0eRCKk2U4j76aQuep78SZadEytCbFycY+TqC2/RqjV7rFhUTKrnfWgiHRUP9qINzCYjUxVxKNiMOVFmbtfg6fydGSvVa06g+WYHNEfBCnk/RuMHXBdZl/3/wc3FQnkpNEVLHLyRjDZnx 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: kT8oYoRq2KwuQlV+QKu71RcwOSvuLncCQ1Wi49rg+7kfXMzb99asmxtUrWwJqUtjLcSsn0bKdQtDh3FblZTUt3NIpO+L0XDrLTC1tDGpss7vliitNQZ6Qs51HrCVlqwffng6VJjaXWBCvMlZwdM9t1eFlz4CI3UopklaAY1noCzUoGpUBoPUyKPlsV92mfBAThOhrReK4PqE1X9sq08l4H3j+3Xz8RuH21+eh3UnsEc3h/AFVu78ksZYpvZN7JX7QS+/Rc+Yv+vOnm8qyUnA8UgbT3/UPfHhsRjSB6mdNLKMjt8SxmwMFXgisd2ywootiBdeDwoFjKWwuLYcVCUyqgZIaP/g5WXJf8rv1J+koNu6hFG3h6audpzNtolxdekodGpFy9LmzJrIbzKpT/n5R6Cy9OPe8ht9/6q6P89D04//KcSZlBULwEgetCMk1DLV0Jfnkp1IEJd3oaNhtCxHoufGD7/9G9wJyofjg4E0scesU68FwGqM/IYVXaNxbBluSi/O4xQY1QIh65d+eU+NbJZmSiyDRvIsrm4gosMIQoEQ+aeDeXQRT1ZwILZIWd/zoZWKLV8Fhh4au8FYaZV+8qLyNy4WzdfmR/WWMic5xkpNmz68g3tlrxG8hCcPQEK6Yq0sxdLxyj+0mB9Ofav/4jMuX/KOJqZSeyNT9Cg7Rin1Pm9N1qzd+D1iiLxIEHEEawgawz+QKdoucdcwPO2K+7vEcrfCnkY5OGLK3iRnGrd91YALA+3d5yhHMRYXFl7udiXm/pVuhf5GbU6y2mdmY2oRSAp8CogzyaYYSV24ZD0liTPUfDW5qKu7DoSY7QmlolEqjh3lf7gXIDpGn3ueN7xRVPtkuhrgwjQGsxIo9aiqvaS7qak6imu3CQwQCz3nuSnFvIOV1yue29nukvOleXZxdAMkrpBZFBLgZWvNUkBenaMP3LiClqinCTNdgjnj6/UMYDxGfEnNoH0jRb3srk5cuopo5mAZj08YO6f/nrOpL+L4CL+cD4ocD9tWt4XqkgQMPMLr8Q8+z9e7cgMTJ8mg+2PepAicpf97Tqeruwy8ZKtICk0HLj5/cbHpQFS56bkfs61JNGv+oEzjSIR0CcSfjAuTArmq/iHSs1Gf5u38k8vVFlxZ7zu01l+YxncapADlC7hH9dJCrcLboUMLIpZ2khBx6/IjP80XwNyyi7T/ZFR+58waDmUOLkjenCzK4TGU+il1z95qnULuk+XACk/44zFiBSKe1F9AX+9PDRx+a9w9KlTo8JxcrbNoCHSkcQO2QQmJ1G8QOiorxeAv2RW3PpuGw19uIYjmJdMVuj6wjJjwd+/VNAyRTov7CkOCFJdF8JdkZNgypcc048l2PSozLaJxBsAW4EPUPq+PFSXL7AS4xu4uUfZT2B/jyTPXal42dOcqzrCfayQj8c71NbN9FaMH+jg7T+4CcWEZznxttjbN9sJArEGZztfMW3VamTlLNq830PbO6C+8+tu3ezh7Jg9Q70QOTWx6Ufi+KwfD94kUP4mQZmwLh0fzIoTxRf1arT4GWSIKbVwNyN4IR40NqBOsrUq9kUgCSdsUl5GpPSIwlr//3EWrQeyDaPTH X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: afe32803-3301-435d-cb4d-08db80f528f6 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:24.8116 (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: apnW5bYV3awwq56PZLQiEG2XGsJdFJ058oh35nX6ZhvcVuayc2Hki0fRJ7XK/KwMtiB5XeTU7rXzPO25e7gQ0g== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002557207464108 X-GMAIL-MSGID: 1771002557207464108 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index df9370e0ff23..c6b228f1ed4c 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1686,7 +1686,6 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) { struct platform_device *pdev = to_platform_device(dev); struct analogix_dp_device *dp; - struct resource *res; unsigned int irq_flags; int ret; @@ -1740,9 +1739,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) clk_prepare_enable(dp->clock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - dp->reg_base = devm_ioremap_resource(&pdev->dev, res); + dp->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dp->reg_base)) { ret = PTR_ERR(dp->reg_base); goto err_disable_clk; From patchwork Mon Jul 10 03:23:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4761255vqx; Sun, 9 Jul 2023 20:58:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlElJ3R17U3xNBI1YGZByqpEJ+XchSjbrHxG+v+AOoEo8mm8+ephWvD2VsYcdgYmgCJHoSll X-Received: by 2002:a05:6512:3a87:b0:4f7:6a40:9fd7 with SMTP id q7-20020a0565123a8700b004f76a409fd7mr10608325lfu.47.1688961513625; Sun, 09 Jul 2023 20:58:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961513; cv=pass; d=google.com; s=arc-20160816; b=UchCGIMf9HX0BiO+kcrFeoUB1I6jwBTjlIco4FcCKGY+n/dC3xadb0YeX1BoIVP/gS Ru8Z5l1T0+TlrHpQW/6u8WljadWqo/IIi4gvdKvhdd13HpJRiug7ec0hH8NnS5Bl+4Ow +zLAptTiV+XSZisu0Az7+RGkqHr/imp99JjZ9crgIVpOII087B6I96jp3nQt+StWGe8O wPZtnyCa86bb/pU6k8b+IeLHUnjFDkR+sHkNn325tt+XnFYgQ26qwhtTl5XhUPRhr6wn CtCT6VZD3eYO1hpcDReWjPP2OjgHyBsKVEUlH9PNnGBnCRgxh12WkERzVVOvj3XvnQ2E kAsA== 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=XPh7w2tfUcUCDzFXMlvzWNOdVB0uj8dkWp6h+wAiGRI=; fh=OkhKJqwgmok9Uu1AW5HLWSzylSfBluM76Bb81dugc3E=; b=p/ww7Bo6iaPkvEGj5HgL3v2Z417V79cxGLSpYXRY10EiOHEhw3Qmu43q2eH0PnlcSg RthxshdRMtoqEld/sLu4yZ5/NgZnquCijSt3JWI3ms1ZuRBhYyQXMQoM87Qj11bO+ZLQ fYV1jOK99/UTCsmlVt5T0PVOcCgDBUgKhRY17CuE5cDfbGLcaqw04y4eTQhU47dVo9Eb EZjGCmrdfLpkHS0OYvgniHLD8Qzp+fCXPS2zbIEXPUCxQ774ijfsIOBGZRNnLsMSaOS7 VpmcqQSx6Aov45N7OmAvDM8HoQp7Q77BLT67cT1+fMwxQmIv5roclvN2pw13CyOVh8hs SYwA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=W5262dQp; 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 y15-20020a056402134f00b0051d96a56b10si7788382edw.88.2023.07.09.20.58.10; Sun, 09 Jul 2023 20:58:33 -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=W5262dQp; 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 S230250AbjGJDZF (ORCPT + 99 others); Sun, 9 Jul 2023 23:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjGJDYu (ORCPT ); Sun, 9 Jul 2023 23:24:50 -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 4843D18C for ; Sun, 9 Jul 2023 20:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ETAm4LhStVE1uLwhQY9Re4G6Qc+uXClXanZQvJFmbjoKHv85e9bcyZylYWUC1HlBJQ08dab1JUhCgjXKK8IQudz7j0Fwgj5Gm8Z8+bfY0+8aiq4jJ7wZtD3eLh2dw6wsZeH2PkN62TygBbOYqOVtIqeOplKjzidSSOboKZ67RMeQm8atFk8w26J63L+JyTTEnY7fH3stjShHm2aVMVLXma/YHnkL10A0+macR4CaUqoGvicY9/WCD2Zp4hK9tPa/RpFzAEbGWNXIyAL605zBnXsxUxGGV8rt3CINLMc+2oBeTDQ7PCyyikr7E/1OpyVG8rgy1oqVlLrhxY2nJ0LeBw== 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=XPh7w2tfUcUCDzFXMlvzWNOdVB0uj8dkWp6h+wAiGRI=; b=AFE2KcZ/ixZet39xiUejnOe85tHFakY8rQQeNK3NMg5NYlOqAmWQNqQGRdKzuh/49LDertw2uTCyl6T7wTw1dR7x5Fox6sLzQj+SjI2AP1Jo3bgbi88TrQhRMc4sATZZIFB9po+LKqCT793c1JbXxp5unRNNCYz9ck0uU28U2ZTNiT0qO5neK4Kg/PSTkgECz1cUp6oDyxUoAbNLCSf8BoBd+2YLyXHlGV2FmRIQcJ0/3jXvPJMaJpeM5HSnzsXSbeNMFU37s7xXAXM1aQOeQUSFIWay0VaR9jAqHsBSOW2NyzLFl0FTvidm+z9rA6lfFTWeSXoCqQHrBKOkwHcmUA== 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=XPh7w2tfUcUCDzFXMlvzWNOdVB0uj8dkWp6h+wAiGRI=; b=W5262dQpMFc2426gBEnwK8Nfal8I0j8e76l1cqeid4QPLZURTE1rdM4DMIxpkWDQogTtyEWQmIe40RKenNBjTw4bg5+Fw7rv01QPXrbolhDtFB/R4gk5LHP/bZ5ds9lcthAg0CiZtcf7+/FLrWdH9JwZxTbgPGkCO1J1dcrFSMszeJ2nCycnVqMhj5cu2b3hlNPkKhNZYI8IDqDXCrcrtHq4tBT9A6kCIts9depPjJenggzLUXgV0IRj/I0jQJxoxFHtmZhxqJ2WfhoZodksIBLYILWpkDgpEgTNL68r10iL0ff+a34eDekjX84Yhw5drxAlRpd/uGW92ZVX4OIkwA== 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:27 +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:26 +0000 From: Yangtao Li To: Philipp Zabel , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/19] gpu: ipu-v3: prg: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:44 +0800 Message-Id: <20230710032355.72914-8-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> 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: 0e0984fe-583d-4599-8764-08db80f52a25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kYBw994qVInCgLQpzicQqwAG0FxBmAqaFjI1ikujnlhyZ1k6BeIifyD/CR2z4qx7ITbOBgIV1Sqd60cZX/VOHgNzPp1yiJKfV+tlSqn2yeEA0M6pG4PLBJTvo5Tlfp3oEvvdk+FIotiD/MlbFg17mKPQkge5m0slenCSqz9ETkppXsaXqJnfa4q0ZmNySHFQhulZ4tS1sEB+V/S8ept9UwKnwLLrsxcBkoAFfh602R0/lim8LZX9IJWffosz4MVKG/9UL0q9M0nRUfCC2RioI6Rb3/jy8WPkEMeQQfsMBRdlcslHm9JCuVT49aPDYfqYZ0CNZ/BU/g9GHgjlJsAsK0ZFGp9iCUzc+MhZw2vYyXzChANBCqwlfjjkoPBqlhr+exvrZjW39LnUillURK/24NlWrHihzJ63WLWsj9c0XSI3F6p4DFwRT+hNdrJu7C/txbDVN2zSCqc5Cv4Jo4NSnSS4MNJLCJX3mKXIRXss7wiwQpz71k3x3fsIqpc/HFIv7IWLvQKAo0BSlognokQmUx+IAu+AgJfx/4kXPhcSg7TLXTAwzcsU+cLhnMBhdADgBLHL9SHjA5YYABHEj2D3cA2bzEsvil3PbsDSmSDIiSo5VLd2CzQdHmdwCdJ/tZix 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)(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: gdCwJHbtFe+gDiL4PvoEBhqDCndITvsSTc5ky4LLlx4xBvTuKlnuPITdHg2tcWWRO8tO+ELX9ut8Qg7dgm48ET/A/N9iP/B8f29t9hZ2C/DMpRPgXhsod9MsJekvlYnmIQcsdorv+F6/qVfur0lNJrm3iJf2d3ZvN9WFGUfPSvbwYn1dMDqpCr2r5hF8GuKpH7+himKrFDyBqjZGeudquGqtLnwIkdTezYp0tIOgj+S/mPkZdTCQF9DU/LWUCPAjvdZc390qsJFVAfIH6wvxeoSrIk3TGa3kLg4NDOj2y/6qOwiM8dAvt86AR4p/hWRWqQs7AnRHxkaVFBzvEFJ8Vn6PSkzw6OkpKU5NjWhwznOk7kTjx5UPO60vSk0nlUpgMouNbcT6pZNCwbkCPc5pAq7xzRN1wr0vL5BuBZ5DFq2DmsW3jzgHlz0XCAez+I0dfZztZsWhLkJHtqTyJGcdQ8zNut2zi1NiTHZP76WVUIGpR5BwRmbz078qSd/B107z4/JVEbxInRLAeGgRkKIUTb1QIzO1jkaHrh1zpXX4FO/KXoLaX25bitcJxAStZtCOl2w1WTE/XSuSwcASiDLpU6CLtZJNtbRrYg2xuM/BrGlcIL+kXJAjUDmkh4/k9AP1kII+qsklByeIj6OD96xWmNpRM8BhWscPsPnO76vEU2D/eBkwmBMoUBaclTH1h0puJTzE6+tsChSmp71h1xlMCxqTGYY93f8TAk6LGPtJvVDqHq0H8K23sKWN/cyuqb0hfzarc+ghc+bfGYlAdMRvWxt5X3z91wn4Ewxp8EU5xBQX8aobgK71XJMs09rBqNRbT6p0AF4NIRzBAPTchw0HocGM6ZSRcdeYj1SyFQepe80B137BTQlQltjzEGbWQT9df/zANl5MCXZbmjuvcsdLCpTjQA3ctX7HeHfp80eBv42CKHySd3JnpeK+Gn3aG4LUf+lPKTMacgWypuZ6wAA3I2CkJHDA3Mtt8pSMDrsyBIVKPRjPF8+X3QCLB50YRNUreZzNVAx3FKixYkWIyIleU1WON5xwkmF9n8nhdK1tcFilU5omLH96Gz4Di+HiS685lFBY5xiIA2aQ4S9jFXZHn5STqfX6zNhZ28/r7V0IQjM76SBQ/DJW9/WMgwEPcNCIP3EmJSBwiLmI6GKUX7Gnq0SNL2DRHcA9L1KoPl2zQqLJP7LZXFUErT4vKzGR3cbWXMBnfcjMg24q3NY3ZSqGrGNVavRPMTU3mmiphhUmWVzU+toAmBlFv0D3bLrUXr1vApfysGXHlCasxPjQoSI3ka4IdQYo6YkCdlT9bLgEmjHi3F9Rk5JKVrqEJa7pO3nfHXkp7BzC6VfuBG0rKP3uxPmlcrX7F648/LhMO4J0x1JxGDOF8T2UMKjjH7/hzk9Yo39jCeyS2ru2fbP/+cAcLkBRzCH+T1BZpss+W+720LBpI5Yh2iy+4AQho/TlQEmccpTTil556uDCxLr6JA523P1+jDZfUPXuN+YKLH6xLtmiRQNDU9wDkCmL//GmV+hjLpBh7FBDMix0OoHHdVgJim0x5oelLVg6X5o3Nd8on5Al1DFurA3ZzFAXtvdy4n3E X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e0984fe-583d-4599-8764-08db80f52a25 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:26.7680 (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: Qy8UlIspDyeliP/O2taJDrp1wx9NZB+piDRgyorAwlxSB0DSYSIfpiUuYGPYfL0MyZi1UjpWO8DZ+OC6sVwR4A== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771004508225353216 X-GMAIL-MSGID: 1771004508225353216 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-prg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c index 196797c1b4b3..729605709955 100644 --- a/drivers/gpu/ipu-v3/ipu-prg.c +++ b/drivers/gpu/ipu-v3/ipu-prg.c @@ -358,7 +358,6 @@ EXPORT_SYMBOL_GPL(ipu_prg_channel_configure_pending); static int ipu_prg_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ipu_prg *prg; u32 val; int i, ret; @@ -367,12 +366,10 @@ static int ipu_prg_probe(struct platform_device *pdev) if (!prg) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - prg->regs = devm_ioremap_resource(&pdev->dev, res); + prg->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(prg->regs)) return PTR_ERR(prg->regs); - prg->clk_ipg = devm_clk_get(dev, "ipg"); if (IS_ERR(prg->clk_ipg)) return PTR_ERR(prg->clk_ipg); From patchwork Mon Jul 10 03:23:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117581 Return-Path: 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 + 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 ); 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 ; 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 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 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> 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/VyLe7mZs4WgOG8Ab0OxyRsmtklBU4sVtVG6Mo2o8ALCYIL6FnUXDxm7YgTvLMEsIK9fPSiuiZT6BMuUdodyqkYlhkMpvjX9pI3ItsnWPnr/6eJRp7T1NpD4WYH72eMYmJxR3HKw9POmSrVy4pq0r7jBcspl+ZEQpTiJsVZtnT6AHtPOaG/Uuz6FLwXSpvUcGTSVsdiRKhx3TZW4wkjLasq8PKZLKX/Q+CO9tYmSPXV2sWnxKiCm8zAfOFNm/okFAzQ14SPjhFc+zBwYvg+2gQbFfqWHRjNObAz0TAr0xTI8Ileob9mxwHcnDh32pShpF6Q+PXa6hCEZ3h77wgRalghOPd7s2lXt7ZG/AfuqJQg2GQ4P8UnsRQNay+KiKIdcNOW5Sc9YhxXvjzd3HZnSU0/923r0GFFmVzfyUISAaX8p1OSx6ab5RuWs/aXWYbhJKwvY/3Png9IzAwx/15oNAK7r4oWzkWHgBbwjMjMntr9+f8zJEZc3NwLQ8lZlpzeYRqH8urFxZ+N5+W4ZKken1cw98QcXCYrVa8SB4x5qjq33eGnOMx6po12DcHcQCxGWCyy8vzLf6Bn5noBB1asYhaoeB36x5CUjciwQR2qEsnafqvf0F7QJNli2aSBXme8S3NtpUVBSaztFhhIcOmmZCvxYZpjq0ZjuBvyoR0bxko4VORo4UN7VwUC4DA64y9ynzqETWw+W940cSQKkkRV9XJrY7TdDOUjrL97iaSVtkLszx2y26d6kvU3QjxuG8y6BlujcD/n9rf3NXUDGk27KLO3wmWjPFvJxzZ1vBtBqoOGcQWs9cwTGcJslKh9tE75KU9UNBdWXGhCX4wjbvRniVrxOkINCCqrmg4oOCCBO2bXm8zyA3KsET/PXIpu+KU6xWtxirUJhx5U0/nAsiXNyr3ivsQEwnw9rt80IP2IB90i+yazN3JaxvBZqTwoeZFNF/PTe0k3qILf8b5v0jldjvJZrsvHLQlqnZoBoZeplH3EsifR6kZOlvA2NC2+Bf2ymyX4w9MPvH+HE7AKwe+HwFFk6OyK2zSHafC4As868VyvOVJdrDNyZzuC4NS2kmjAJ+ae4ss8m8+LWgBN6GK0NNO2WkkI2dvmFdILXkmH3v1X0QsjRu7cTskkGzJXVvqoitO929Vo/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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771004207250231485 X-GMAIL-MSGID: 1771004207250231485 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); From patchwork Mon Jul 10 03:23:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4753481vqx; Sun, 9 Jul 2023 20:37:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlEeDXVKHXRgdJSgtBcR2ycnMDhw/GcAHzju+KSPo336lkq/ZPeEL+ha9/GmmJ1SYq4RsVQr X-Received: by 2002:a05:6871:411:b0:1b0:3e54:946 with SMTP id d17-20020a056871041100b001b03e540946mr16067385oag.50.1688960251369; Sun, 09 Jul 2023 20:37:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960251; cv=pass; d=google.com; s=arc-20160816; b=Po8CeWSd8MbtMV9QeO/n3xwjfrFLLstpqkvWBmj2huqg49qDZJZJDtUXdYwoUGOTtO Qksf0nNk8NWo7SxFFgVg6UBAS1AdoLvDGkIkiWwtg0SGeYAwrHwU/8aWlaRiqjBwdFov /pc8TjRZFBrbClMluiSKYMxyk46cDPqREIAK3it6BbRWtOhbMmoKqpxG5ft7n8M9yFC3 WCxZEUovtlVrdDex2bk9viQ71xoLXLvnCrPjJ2Ow5wr3tGJeYcID1vJO0wAZjA541y0a T6NApKPQ7VW+H4E136JIE9mdvOzHGYkd0EK5AIoBgYbOyCHWhWh/E4/52niTGMU2R0qg F/XQ== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; fh=8CosaxLVmmTt7c6Jr6gOWS1rY8DbgZ3Z2abfOQKaM9o=; b=n0EROELBRpf+go1HH7hpacKnO6ZBaciwrhO1O7Ofba5//LgitXXMnDOmUObTIgbINU hqIXvpUs9lCQWn2a2IMARfvqG/dFf7XPWCctu77rYWYYEJi1cW09xD/TOwK56/OUQB37 C+z//8ZMkMnvzLFpJpg95sssSWod2hpwp3gsiRlZtD+m4WXIwlazXCvMP5qy4ZUkQkez 6dYgJwkNXy42gQdmrjGcTYdeEgmWeRlIu7aKk0qQ5bioscAfYYX7qH8O48QyfWcw+jIb zZSnYAMBmcdwa6sqQF9TRTK/SNcDt2fv0DqQkdfpMtvsEJYH7t0d7m6nrRNe8a8kVH6N 8g0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=btSXtlBw; 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 h124-20020a636c82000000b0055764ab9ea8si8090008pgc.732.2023.07.09.20.37.16; Sun, 09 Jul 2023 20:37:31 -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=btSXtlBw; 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 S230168AbjGJDZc (ORCPT + 99 others); Sun, 9 Jul 2023 23:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJDZF (ORCPT ); Sun, 9 Jul 2023 23:25:05 -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 4A418E75 for ; Sun, 9 Jul 2023 20:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MwgMv+ZH+fXu/goOpmiTP6FF02I2XDteakznBqvcM5wHtnejkq3KaGe8UTm4rfT1PbeFk1VVn/QPsqQisf49zrfYgufwWfd6BCn9SJV3kEKOduSFM81itzUqRu0Ffz/Rz9LBvQyLGAPh3GUdJUkrZSSZM2cvrNA4V2xDcLHRVf7G6bfd48PLsWluxYum3C69kstLDqPlVswR7qGSn+xU2S2GruBtIqfbP5Kc+cNEVZKjCVop5WHObBe9Mwa2pulemXY7FaUbnouWRmqIe6wpbGf9PCbnSklhg4vg0yPLZDgPCRtQXcy3/HnepKDjJOIA4Ft/bR6RJs4Xd3NSS3dNJQ== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=NbtEviDzy5Zq7nHtQVj6h3CEyHndsiXeZveCcwf9VpAqsEGHLc3DPy0VemzRHRRpJlVPCKVXiHkUINzchQ4xPUmSeqWZISd6CiBqf3mn3SJeBqS0m2KYuds1Oz1iZ/9kfnPCea+FtQe9iJJaP7ycXgovHbgZ2/TgR3tHYLiMJEVNt/as3nsRoXd8Xdm2e/ul6PD704UkLfN3w9C23oX8ekZYcBtoYwSnugAAeAuTB3qv7Pph/u4AsZU1Z2nKQ604DBjMOH2t3oO7YLVNm60G5qco+WbZOBsxUU8nBlABBPjYxWExna84vm1VVY/ecxjg3Or+b8ePe3XeAJCW3OpseA== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=btSXtlBwIQgplP2+7/9oGmyR7qf93TSs6jehfmYS2I7KDB4l/p7EISIhfa2C79z+K84yRVbrQ/NCHcaOQr2FsdZhKJCcuRhPRd9SBZJDMix+F4IFRYEMyfRK3LsTWyYu5q/cosD/tFLqDGyj//Q4n9A5WIUDOCaxdBUqsIHPF/8ssJxy3V69PVhLJkV/+gW7QMiPaLQs/yQV394SbHl2yzzTx1brkMTjKhB8uNB/tfkkngakdCoJeC/GcLIv9K6dDoflG59bRDVcKyQ7xd7cMPKrJPwyYmh17Od8SPzViNuXVFDhK4n2C2TSDukUcXcJCNuhOkjKLsaFITX8el6ZBA== 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:32 +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:31 +0000 From: Yangtao Li To: Marek Vasut , Stefan Agner , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/19] drm: lcdif: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:46 +0800 Message-Id: <20230710032355.72914-10-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> 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: 6110ff7a-af6f-44b1-2950-08db80f52d38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: alOvc9yLlp3nVXOxDjgmdhUxjDfxlR2+5egLX3dckItF9tcVUzhPILcfqNFdpzul+8203rta7ajvlqHjJc2BXj36P9a1MgJRREhKDk0qFhXAYyiaVNAHe9g70x/kFqZSpZ0Gi3IPg5WUFdDEjZdyv98zyGEhC9X7kKCL4S3MMMomvgd6DKJA05VJdzKxqoMmW/t497ZPQM8/k1JwKaRimSgmwJFcIgj7xUZgQCjLFYnpqlTrRtH1pYXIKZ/pelTX4idYpYxSA12xjpWXIG/LMJib8FGlBKWDuBJbA4v9KXBTMN1JSct1iEQzv9CCwHlLMwnbi/bWGCHFZRzacBTqxUKbo6HneKwvvNgZRBFEhEDnYacyvMLuxVklqNke1V5P7sj5I4hBf9OL3bI8+RC/TXFU92kIV3fAL1CizYNzgxbgEqNddWOyfLIkwqwa7b5Z+c7R6nWBuKYq45Ym4PBv2y23pcuf+YQ3tlgxaQuVTQqJeAFFsqbWN6g+MmruqAXqFXahGSQDGvVUP9NaRVI5riUElXgsfBNuC0J9S1oQEisyqq53usrQ0HGi/kwf+RTCpAow+7gqVPd1gNhpQ7AbDpUzmNMxupFQi/yryqgXBsXgjaz0wnRv2WHtsxuyddDw 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)(4744005)(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: aJB87qgIZ4/TyBNBx2ZyQd4eaENTmlbZyv6jQmvv/zRd8O7glt5kho2dIOpWzxNFOe5FZgRr5zz1aM0uyyUeTymEPcTkCjcPtjARwqlDZDwODB9ogpo9Id2OFDuf/cqUOvisCuC7lRlsB28ypzJlMRFUsDyqUiBfw3LzF6ajL0MIupuZKvlg8q+qIsGsBzvW3I0tgmGJChFZoh7ZX5/AyOOI3kku2hnTEfm7GSXJVwev70WwMkmX7SZUHQkWfpdk7aKKi5EYxUdx/rX4HwfmZwjZDREWp4U5NIin0f7+fBWRj+kHZuRljOgh5pnOxw9XrrIRjBev3ezrdGPTCQJjmkDxU8LPVojeVdFY3OCj63M8L2pxHrdrDfzOpsl/gJfgDh7IVVecuXPleNd4Iq7U256FRtpE5EJLVsXMN+L9HEZLPZtY85dVv0Sm06AErkORMmEgtP80+lCkdRAp23kPnEq7MpcDxMjnORyaHREAXr+fbh58KWQ9wrZIPeqrsg1hTh058kdGMXwCdt0DOVm7EXJIyvePZzgpeLtOYKVxz+EW4KRfv9E8Zi+VBDpsczlu7dmlMznyfIcQhJi0Az3y1h9R9TKB+i3Kzg5m1CA2+rfTP/PTmmcwv85OeVGULTJQ1f7ed4cQMyuissUQqJZ5r4p2cld1ze96kwXQb6a4ROmzgpRbBFXXqXWXRcnk6vAwbbyzCwJciGyxcF79e8qAmOwFx22O/ju02ErM+cqUfYkMZun6nrlIwsQJZQu/Jnpysm/lJhnzj/D2cJBXetJp7uLJ5nQJLtM829EJ6tSJlJA7WbnkjHxvvLewV/WjoVxxaocU++6MKRDliSirOoKyUB6Ge60wlycCDqip6J3OCVbw4e9FGzGjMZeW2RqkFsN2xilrNLnmOV38RDhlMkSwj3V2mOwUP2LVhCn+4Lv7w0sX9PwsbOx0AgkFvfgYmAIOio892fAMhy4bVOJ/vezTNTeKZa0tRQ+cx06mg1hnkOHxlrA4LhrKBfWdIpaqIgjRLHEN0kDp8cEuOWVltWmX0WPa2XBnvtsNKsA5hJi8nwXaCoOhQzl8wUaGo8Un7RfQS2UlyVOHYwYj12nAniQ4jLzfbK5CXjeYTp6LH+1M/jCJaPyEXJyhzrkWpbtHyhvaP0xG7mSzEGrcOXHtkn/NI/4gKF+0xoEcSqnfTKIA3vuR/Avt+7sppD7s/LvUUhTwqpCPtm54tPpjm30NIyRxUDyETbDWXPEXbm27KnC5tcvqz2QI+Tw9YDWKIqUjr5Hu6h3hfpoO/tzw3/EgQTe+Earz7uH3Kg0asp+kcowxegC2uSkvImavynd7+YOTFJpTruRsz0gc9kc9ZVn8UKO+aqanJmNfudCfjz6moBqiTlwOYbG0hXBLTRZp32bZcG0cln07HNaFtIDW7gq8gVo6RYIDkv8d3nFzqQSO2tpldVtRQKdyS2ynpk3r4JM1FmJszNwLR4YuIYhta1cIYFVwmGzdXR3nRnzO8CdwHI7GBr5kmCq4pww9V0UOCFYzOfp9DPrSsfp8z9NFmCCZV7byFvJtbLrlsaMrQVDj2ewpymO552vFVpr1zKdf+KWAcjgE X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6110ff7a-af6f-44b1-2950-08db80f52d38 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:31.9191 (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: FPSRk62lxOhiBsV7UxqGG9KIm2I5WJJrEesEfY4qXbeISUbhm2Fk2ZaFQ+NMl55rQjjjwkhydp0iuRXDTbd1fQ== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003184314503767 X-GMAIL-MSGID: 1771003184314503767 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/mxsfb/lcdif_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c index c9d8cbb21407..a7cdd0eec7a2 100644 --- a/drivers/gpu/drm/mxsfb/lcdif_drv.c +++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c @@ -134,7 +134,6 @@ static int lcdif_load(struct drm_device *drm) { struct platform_device *pdev = to_platform_device(drm->dev); struct lcdif_drm_private *lcdif; - struct resource *res; int ret; lcdif = devm_kzalloc(&pdev->dev, sizeof(*lcdif), GFP_KERNEL); @@ -144,8 +143,7 @@ static int lcdif_load(struct drm_device *drm) lcdif->drm = drm; drm->dev_private = lcdif; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - lcdif->base = devm_ioremap_resource(drm->dev, res); + lcdif->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(lcdif->base)) return PTR_ERR(lcdif->base); From patchwork Mon Jul 10 03:23:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4759240vqx; Sun, 9 Jul 2023 20:52:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9WGee/wZO+Ue2MIaIvIJD3hGLDNOfbGg9xyETlt37V4vW2LE0nfy1sqCpZOk0chk/pPlB X-Received: by 2002:a05:6808:1141:b0:3a3:6329:4cb7 with SMTP id u1-20020a056808114100b003a363294cb7mr13996699oiu.9.1688961178344; Sun, 09 Jul 2023 20:52:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961178; cv=pass; d=google.com; s=arc-20160816; b=wYuFFaBZd8zy2JDZmc1K/J+v35oX2bOYk4d9IyN6lKNjJEzYEhxiOXY8V9Xv7vwQel PxZpm/3IMLjAcn9Ln6uF0a7jidsYZFEG66AMT4NqpjTr2zxOpY9/TdswPFRkGycC47Z8 +HcrU0dUDtkQc4NJxfn+D287Oz38w8FhipS4Gc2rRgc9z13iiipr0jW5sZjUCrbj9oFs ylAG93MHfq7UcEOrYe7PtlNl3TcCS5kvhdSLz8YB8eYRO+7XCeT5GPQfhvYPjk4/c0IP jlaY/ZshHjs8cA52MJuUmEfYwqDUZQF2Fm31ehna7gaB+J2TTwrx0M1sSJDFkr9LX3DM ROhA== 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=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; fh=8CosaxLVmmTt7c6Jr6gOWS1rY8DbgZ3Z2abfOQKaM9o=; b=VQniKFpranl6/vAmeWNHA88EA/zCX310naNgU5TBqN7fC/6QT1wRu20HZ2CkGxbpjO to8mW6huOfyKe3CkFCo2pgc16+IfWpmwVEUF7Gfl0H8fRoy9104xJqP2FIS3QxyrCwqj IgyqnQmoexCirH3XqA7Aptrc3sYTuFWDeZbBGrcY+CwvIXtZ2314TeA8HhF+bGFqNE8L 0C4KUSl9cAmDc4ZupP/gX4KVtV6Zm5flYAp4nbX4RjNy63e4Nhmbp7q/Jkrgdxe7wU6Z yGdI8cYzXXoC93Oyp1YF0d6LFffGlQcmgR2pWtT4aNDMcQQhZISFjt7IG9vC34TfjHB4 9akA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qH6GLvQq; 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 k32-20020a635620000000b0055bef93b8fbsi2355091pgb.75.2023.07.09.20.52.45; Sun, 09 Jul 2023 20:52:58 -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=qH6GLvQq; 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 S229555AbjGJD0P (ORCPT + 99 others); Sun, 9 Jul 2023 23:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJDZd (ORCPT ); Sun, 9 Jul 2023 23:25:33 -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 424341BD2 for ; Sun, 9 Jul 2023 20:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iaWgxSKQ6JCFHI4umV0Ux3PVIJvNkoGFv4IEUnW5xaeyCZRgLt8nyaWmuPiIlqALJunvLDw13wvqs6tXRErgxX2jQ2j2OFYIW8cUje1fhQUwwLMH+2V3/gCDl4CS0QZ6Wmx/xRZ7WtjYcifSYRpKVa5Bs4kIyZU/+OJSF1hD946gma1se4KsUpfCEXdm5LXU6t8hPwRd6T4KU+NW9ZLA076/wU1fuovaI/bw8XNppxfqUXiDKlRnTkTaj4sDb7fuPFPglsYTLvWM7ge3QzZCjFirJrRAY55YtEbQWFaNWCqesK+Pi2Em8qHpHVypv/YouD+0jgytS8BV415tm/ZBCg== 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=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; b=n/jjATVCQubbmRcr55hdEr5ja75flUl11oUjGSbXkYaOhb0vvO4uxYk/mvt8fwezwWoLFxMAoARnD3cBBSlzoOz/eVS3Gt7Xhed6dfWmhR0KjP93tIGemvO0yYNlbSLc/p464W9CjxcBgphZ7+tjTeFjrNAQDzX/u5UYBQqfWcO4Es2DV0aqOjwt7bbaiC/vbQNsFox/Dm1hE3ji55uupfcsIU78ZEoA/N09RwlPpP8KAErz4dtEbDGwALjzHB9Rstnr5C/97WfrsWo8QsZB+ejXi60r4yAwraPFdLF7qYbUhsjG4YfhIgep8xEel+XTJreLZQJgT/m9/Y2KguKuMQ== 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=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; b=qH6GLvQqwmdiEMc2RmE8pfKNue9NqnEVoIzvcbphfB9wFQfkMqQZI+ryEIHfKUD1Duywtyzab2oAhUwad5VeqRYzjcbAD8Z3bbirjPUXj6+dafSGDJ9FIdBUcCEjneiKKziS9kdmLnwhOuCMEGinpkcdI/pJoVJqYoRLGode7HVMDVCjHgHs9ZlR7v4g0UpAguRbvKUzx9WeTbn5DWnKR56HuMROfRzu0Ogu9AS7wD8Oc0cmvPl15GYSauhIjuAzChbsqmJ2f5wQw/A+CQmz7G9eBsFdP/TGSFWZMrJU3p19RGSp9uup7979Nb8g/7Wvw/kbyDdyMYXlqT6h8gr6kQ== 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:34 +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:34 +0000 From: Yangtao Li To: Marek Vasut , Stefan Agner , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 11/19] drm/mxsfb: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:47 +0800 Message-Id: <20230710032355.72914-11-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> 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: 8ad84b70-0257-4c81-ee7e-08db80f52ed6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5W9ZZxaOQ3gvdW/ThFC7k4u6IJme+VJXVIYsTTzuDYjY45ectMzN+DZygtNCi6VWcVISVOQCXIeD4Zs9NF04VugZmZPtCdWxFhcDqYPE2Vakp27+J+VG5i2nzeGEmLkqe/F3o1KVcGHT/6OIMDURc741q528qyzGRQYNRH02y7uh4dk68tNA/ZGbejrWsxe3gkj2FHHnPqCo/l9pqEFvm2KLslzbuie6iSY2XF1dVUCXObdU+Y9yicuL4ZKL64J6iULyykLvqydRHv91/SxdjDlPXot9Tcm7cV7RbXMEP9Lwrio396oNbjBwsrouFZ26zCK5uFDG+/Dm2azm4T/BXwNPgmN5X18K8I3r+RCGdfvyGtOSrNv3yw0gslno1tFM+LEbp9QpBuvLlwagEl6Kwuf/T+XXix/8bTNcpWNn92aYQtcvvPnfU256zYjHmB2/mRAWd5OLYiW58srvxPisEAFVisZK+hUY+gHbXa3iRN71f9tPQYMhxmTZW/Tu/TWz1ZV617g8+8nSH2xIJ8iiOyZ/y2RSJ8tQzx1QGKOmX9E+vFi9Va/hJrR6G5WKMbj9wAVEWay+g5CeQqsV/+nJxp0PzAmQz80h0G76ZRvQ+UKJxTMtCGzAsF23fxcP6eS5 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: eNqrbERRGTUx5ehj2cd3ilhfPaUEwB6kHSupzJCcpR0VfggjcH/fniQDmTObEY3z7irtz0r9jl5UHApCrBGCDEwp1ZFi9enNZN5beTEn/EVQGi1jBJ25izzpxZ5MaJaxTeohnYAVpBO1+M/NHhlDCAJANIb9z68WKIA5NHU05oUTin294tg7JwgoWpT0C6zOPyUSuwfqqEUbYeUl5+TcoFPudE9coXk98flMNnJon58Miv0Vm1O5sHmcQI6XFx28vdp26KlG14g5CjvYx9uTF9uXUFctudENaXtpJyaKgowdQ2RqdR1ySwLPPsl7ZDg7UD9CRFu36AEvNB6oSyvbHwF6jcogz0InqviK+IpVKIZ1gybBXHjqZGxt6SSNAruJlOfJuiXMXCjOP6beG25ElHqG2IL9wtEK1u+LVnPlT+VPxrUZ6+6n4FTfsYbRR+NtUQf9Z4xvRbrPzxHYiibrBWcVuS2b4RmwCk4E4NXn+OocaLr0kKYDcaef7WebBzonRbUKLtGj04FOq3Z+yFSWTLi+yOkbvz3R5fccbTJiPdPTKTh0adz+p9XmisJjWd2DxNQyI7MWFjecgzAirGGjGYdyvc/5z4QBgcVg5yauptGvxigEtC6QbgIpSsqN6Ic+310zAIhqzdRFZF4ihLFr3tkrbHHhQdsbQy8Vm0au3YbkdXExsd5nb4Gz2MYbgWANorp1WyQvWIKvKLD1kUPdvK8mi2pHJnbj+erqg53W4hx9ptbFMinXpGEtSKgeGI/xJsz+JcE9i0+QKyn8hOiCsxANLABUQhCM6ObyB7tGbsOms6gOAffO0wMt8FyQYW78B7RmeA2B/Nq7IjNgbQ8OOKFk4keV1xikD2eaIWjO9hpGZXM86OiPnlZgEVRv3t174uicb/w7djrUouZi65t1bNjlPQ4Kw7fps7kKt4Uxszkh9Ja3KHYohD90QSSmNV2R50qSTY8/LQ/STkHI6JfHbn46tn08HN/qkELxJUQq06LHC/YpjtGh9eJQlekreXxGW0vdgLdpZqwGgH16HPMkGSh7CkWqM9p0ir+Yul4GV9CVVT3BqH7SQlhUbJwNCiIW60YKRRtESfOCRn9ubyuphAIo77yzO7iLulPU4lQRDUM1y1s7rNjRuhxFZbKd5+8I9JsBOYwtv6IGWH9fL4uXAgwQDMxxsYfbAftZAtIgT0rGQGTY5QQw9skfGviyJ71JfH+dWOXGT/RHWf54n3SRvgP9bhbTsLXmMscxmiUjGG7W8gEb2FPPXDowJO4IcD4fLeBB/ouiViFx0fS3MN8IWI75xrvp7uWDqE/MOfHUEDJmeAP8STixROTM2EtRR0rq1mVAbufK6/DVH81GLQ1cyMWB04Xa693gf2sjj9kDwfiOVlwZOy8bFLElYNQjZCOvPMmyzrQF1hgCwV/cd4x+uJKMnrTjNo8CFUuGCuSO1/+fSnek4mRm/XKgw27GmcjaWIaDLY/02pBwDRBoexbj+CMc1IOgPvMWE05pBuwA8LUZl7yMf3OOUYk23T8DI+ryfESXiqgTF4/AUJlV9+TOyi3FH7ZRPYQLPIV/uTxjIva+V0bhCWm3Ex88Om3qkxHX X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ad84b70-0257-4c81-ee7e-08db80f52ed6 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:34.6317 (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: mwzPw5ooamCmS8pJscrFidbza7t4b3z7kyi3p//tytv1TvRM1pU9eFndUZMYEEYti2SQyZR0uaz4GMpcEtt/mA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771004156780795346 X-GMAIL-MSGID: 1771004156780795346 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index 368b1fbd8305..c8b3fdb1ab09 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -213,7 +213,6 @@ static int mxsfb_load(struct drm_device *drm, { struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; - struct resource *res; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL); @@ -224,8 +223,7 @@ static int mxsfb_load(struct drm_device *drm, drm->dev_private = mxsfb; mxsfb->devdata = devdata; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mxsfb->base = devm_ioremap_resource(drm->dev, res); + mxsfb->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mxsfb->base)) return PTR_ERR(mxsfb->base); From patchwork Mon Jul 10 03:23:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4760144vqx; Sun, 9 Jul 2023 20:55:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSDw2BtAI7rukCHYmQYQhW1+nZ8N3Q848Y4A9LkWewq7xog7YCH1h/takGmL9aZuy7bVsP X-Received: by 2002:a05:6830:c5:b0:6b8:82ed:ea2e with SMTP id x5-20020a05683000c500b006b882edea2emr9216022oto.4.1688961307496; Sun, 09 Jul 2023 20:55:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961307; cv=pass; d=google.com; s=arc-20160816; b=QmKW+8nHU3BcxJmEIqhWUlTpfgNBlXR35lvmjL+FDOxm4Jm8qOBfPkxQidiM5GNOhF qK45Fu2thtLxTscCUDHP2eDJTfzEfLYyz9S2RMDRZx/tOchE6V87DZ6UjF7Q9BTpXVxK MW5V6RMBF8kOKlpHQAIU1X0gNpCKauqFaPBKFtoDBKJYuZhG6m4vOWU+v1xgUNxO03a/ f8qT1EUZWMh4vsLBprXz57iwNSvYM6r392XXOsJ1FrcOFOrgjcLhiZic6kQMcTqXlz6Y ZJ8I1Bs7g9C94DAlJxVVtWD/txU98FPfxCLWc8d+lTWOmbbLrZx4dq+kbbEnAQfj9yht RSNQ== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=xIxGjgDVVUiQ1d4k3jsa6NRVcV2Ulq5rsw340Q5ifF1banLiMxA/9PmyPED3gPQI9j 8hWkRA86Zm8dciBb56S7HxO+UyUCj0vTPxpbgQPogxUsMcjjkRtlnF26WsRq+uLhnyYg /zk5SuepZJtZ9gE+Mn5NzMsJZ2wW/g6zl3zlJxUnuSvW354Uhi7c4SrISE4jG7QZyiot xgD9s0HL/RxuKe1yT2mY9lotncAHsV4WwQyt2vGVR0Ob2MPDujL3+9N4NLm0nytz2hJ1 g1u8/UdPOMg6ymfCnVuMyW0gjYf3/Sm0SmPLumKHy2N6hVgdpkrv2zlJ1kHsnODta1P6 rqCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="WYVry/Pe"; 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 ob15-20020a17090b390f00b0024769a264fcsi7094126pjb.10.2023.07.09.20.54.55; Sun, 09 Jul 2023 20:55:07 -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="WYVry/Pe"; 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 S230203AbjGJD1E (ORCPT + 99 others); Sun, 9 Jul 2023 23:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJD0R (ORCPT ); Sun, 9 Jul 2023 23:26:17 -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 C1A902139; Sun, 9 Jul 2023 20:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ftSJ9njjX7csNckNqznTzfIv3iR1TM1Dx8uuSX8oB3oqtsHyYOMzTLZGLifiw0mJPFNZC4SC11VGy3IJwHkVQ9W7/d4sC/6GmJMb/7ZM+UU00dbS1V55ECS+1PhL027BtLG2Byn30VSz7em4SDD905tKQuJnlxnnBY5Rm/nYs/fX+k3c5u1xhWMy1lQa/3o7i/Mkcbs1rFaWV394sz48HSi/1k317cC22xKnuDZKmHOeSiMeIxbpSshTkM9/NISgLmLfaXGxXcQkKXB23J8sKRke9kC3b55O0d+clu813PA47VOKJ5imA25XiLQyS05Fo8db31P+lkQMg5aB+ouJ8w== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; b=AEfEkF3G7HF5Vu3j5JYYLwulDJY0thdGK1+ug7xNlXYtXAWjmSt8HKjtUk0MEqoiyc2nrNyXLAlQYVswYGGoi7ktz9qbwFU0D57qWhhP8mfE9qBAob0xAW+ksJRd6EP/iDsgv/LaoX1GC5Crn9kP8TKLKYFroTPtyKTi+jC8iA6Wg24ZfMHQHzAZr7LMErQvJkxA1cDYGaFF2BpzzTnLiQvYNJ/3KiQlRnpyVGB8FjKKXEDn78rxVLLNvgNdEc2KTax0K58X1Wbh834WDXaExZruTCSJwF5SrWK6/8IAYXQP/y8NgXWqBmXrLpv13ywFIPUdY9Zcb7GshGf1qHFfpg== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; b=WYVry/Pe3MyrHvXlJwCjveAnnfnfZTcOYAaaWJ75voTf7R+JwQJDfv/G7aQSlPUj6ejDTWMbEhscb6cGY2wKNmFdivq6AWkGngjz0sWKP9x+tRALzjE0mbEHfo7QR1JcV3/FeTso6nTAzHb4JK7ZTL0tUdrxpzXXo8ZwYsZAYBTGo0OGs6NzoQ3BA0WTatHZmiPlrFgbHolxgMON6VAUPiUKGTcf+NA/jmytADDBp5WJcjOBlXgQbyQGT8si9D457LY1zcnNxhSK7/kyGkD1nb9fYpGrfY/MNzTkonn1Nk6j7K3ps5896vQxmbNHrFAz2FahZV7yoKVvaxNaZg9LFg== 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:37 +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:37 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 12/19] drm/tegra: dpaux: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:48 +0800 Message-Id: <20230710032355.72914-12-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> 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: 8aac08b3-2e56-4875-92cb-08db80f53030 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U0H7DdEk/mT8vPNfI43h6BtwGod6JNZkQtUHTYnk2qple1zFZSR6hlRiaoSyNCdmLPQ8b5USgBvcig3mnGbq8tVGxF11LMT1uGbjJyb3oAlda5bk1waGFLlYqRecrPlnyM4iGa+WEPrqrFmrJBkqwwFEv1juv+g+WWT7icQbvt/x2/gybbkA9BOAGNRJzANQa/SOr9HrcR1CpkRhDQCJEBNAqKsf3mUNs738/v0XxBth4EXiOo4RdKMG89myGg5jUCLXGBPgtmMr7v8J9WXGGu151iGBjVpfSH+RmKQrFgW7Uib4wlaFoCalkuMU9t664q/qWKKgdGazx8Bh991B3PkZhzvlKFuaegsJmvd09QVKZpbQboMvaRlkXythYmXxghS2T1Epl+WBBHFD+cr6hJjB8W8RmIfOdZiGwV9SiWbpyJE7UYLg8jCDWjU9tBTTSGsixlJl0YxbJmHoXkgAhQOshy30HvO4MrejIq33AWTWwZhvlhqZAPzs5GICS+RHat6G3CCFpGfxIKfxD+rlMlHLbOBbMA/FidR2kEgdD2IhFPkKqVZ79QOrJLeLwKFUJa+Hdx4U2BZlZsW9F1VgVBe8SJShUmbLksHEI1PR7GZDo5HX59lmHGOG8wkCZe60 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)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(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: 7Dkc2CPwh37CnIiPIf07R3zG1n4osK6AfdE1+wx9K0Wvti4s+CbcXeUThwM1USdIp5mIa/1PYgnHE+X9nixlXvKCtMh35t/Le7hysg6n9Hxzv52CKbxCeOssDIL3DuwBqFQ82Pyj6m+05P8sh/7p0+it2vJXeQWKLGU99+VG03MB0RZsaNSYo26wPQfb2gD072PO2p6MPe3AEq9AsvoJV+l+aiJh6qL8KgtXDxzpqDxr+uR2I954Ap2GuEeJgQJRoI2JRof58kS37n2eRtBKHYyVlbjEGJA6GQ1kf3ribWeI7dPJxCRhZviEIPVLc0Zik4UT1lBa8PUNR0tk10r5qXvY9xt+KpErHQw8PeeBP6F3zr0rf9dgNte2c+aqtj7q0SP+2/wi4fO4IuHqJP/5z4i5rno4jUc0zZHX/XgaTpaNPI2ITKnidjnxlcfSGIMsOmdfny0MFMeEviXGNkkukisVyKaN5zEWYpDOdp6S39II/VecJyFSyUjUDwcsWcU4t0QYz0ABRUmhJKYoHoWV2MEzmBpDVZEgW6grxJ1mALi7Dw38d+x+QL+PPMOTKp3iqxgaMW7dMKPqhOiqsVOpLZdfAXRlcJwxNMypWmmhJl+hZNFPOvrmGU7Wm64CjGT01h7XTFVaR4wekBL/++uKd94x2LtiFgTsvmf16f09C7lvggp5KgwjfQDw5ulo0mOooTXRub7uPJAqfzh3Zu9wxl7dgVRZ3H/rI4MF49rdKOhb5hpAaBc8hIrTeAqBG1j5kftfqDMK3witg8QTzBd30JpOskU1zyebKTdiKSOXOLiC0bjnR45tXldy4Ln5FKBFxLGDAWeCn0xAn8D0MLWJAXpDuWPYYIxn4sD0d17AOaB8XrtONoXuphPlEPaVN8DvwVU92Svhky1efSAGZR7shqmi1pWvUX/xi2N7M3J/CVdK1CWuMhKgDhybFE8wr0I2jlUTVI/KPS54SRMFEpgurw08dQkMxy3z9bC3NPyKSwTQEcVa26CYxUECimycggDC1rpWwee45YuxTzrlDIQw1+H8ZJxadNGJFJXBTZvBTeUAtIzKC4CK0QJbEOJSR51/do5nFVs2pK5e+DL7WHQ7o19Eh+7KetGjj1EgtQu8zjyOXus8dznX4m8jP1YsAedo6TW62LqnlfpzVLJxwQiZs6zdg5qEdIlbUc4mV5MSNod2GW4FvWcKtM8G6PwDK6pn7uBkaY94gYDlRbjDwmkaBKqj4nsaDMNr9WommEunE+XMYCqZ7Chefkz+LNa20ZFqd+UPkFIcDLS7B06Igzk0q3IaSjDnoltWtHDj3I0clq/iecX6HvtFcexqVgfZy2rOQQtPsme74sUBnK3udkEgXAQiqaznBs09ApKtRElVgJPGyGfR2McKzbwDLGGKAiVOTYzaf2tlbZBD0bCl9Lmfn4siLq3233Jn00ZR1Oa20fdpldmTlI2HQb2h4br1JULZwOSqG53+NKf1eZIrxypewg8hpm/ByV+06tpMn0elqcr+b1IQr0tKxqgSvhU3oTiwpUQAxGDkWVa7CzClLrJiznvNoxTDuKfu4jNDvRs1jDY+vKbFLMLwgF0PNTV5QyzJ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8aac08b3-2e56-4875-92cb-08db80f53030 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:36.9202 (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: bLv86LzoEB2kW1DjJM9su3F0dD4pGAbAKsl+v7n5oPbGjOKDIiehP1GQxBdbzhRIty6ibolYF3tL8GD4OEHDVg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771004292026956859 X-GMAIL-MSGID: 1771004292026956859 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/dpaux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4d2677dcd831..4699def04190 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -447,7 +447,6 @@ static const struct pinmux_ops tegra_dpaux_pinmux_ops = { static int tegra_dpaux_probe(struct platform_device *pdev) { struct tegra_dpaux *dpaux; - struct resource *regs; u32 value; int err; @@ -461,8 +460,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) INIT_LIST_HEAD(&dpaux->list); dpaux->dev = &pdev->dev; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dpaux->regs = devm_ioremap_resource(&pdev->dev, regs); + dpaux->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dpaux->regs)) return PTR_ERR(dpaux->regs); From patchwork Mon Jul 10 03:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4754363vqx; Sun, 9 Jul 2023 20:40:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0Rc2lbXUUS6By9bkJsKeaNURInHiG8XzgMn1DtaFCEcr09cG/NiMKaMqPyLqq/zeaHOLb X-Received: by 2002:a05:6a20:970a:b0:126:a80d:4960 with SMTP id hr10-20020a056a20970a00b00126a80d4960mr11178483pzc.30.1688960410754; Sun, 09 Jul 2023 20:40:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960410; cv=pass; d=google.com; s=arc-20160816; b=qs/CD19d+mOtzuhX+bo+4l71M2ZtSxiCGwp0TiCfBaPY/+0YdQQ7vFu+gxMfT8Dxyt QsjoBfACUpMBZate6GwKNN2kKF7/4mpl+jvPgvNeZnjumv96I0xgTqEhQli7LTmSFQ3Q pNo2salbMuWfQKX1EmWcgO8fly2Hzh2tLIzr8hAXPQySdeHHXK6diukL7Tn4CMdi103q BmmYX8CwMFlK7kt87fKo82TLrnGBHz6hFVCflvLthKGljdJ76FsKL9GMJ+Wi6/PYNaQ/ mWEClLbiEr6nP1gBziMfavWS66odQ5vRWeBb5v9wkxznUQVsY/XW3ehIihapD76yLp/0 ETxA== 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=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; fh=EAuY1iAgBnqWkMHTbH7OsssokNBIjMqpFBIJQvaMSfo=; b=LtjVnpU4RQq6GlwmPeN/xDHMOpHLawdhXgXUq//d2aUnMhj2OcaXgqrn9Yf3j1k5am PIkyY1NXlxoxedv3xEsnawMsfY4q6uQCeg64RS2uTUW+aMHWUDaxpGdeJdtEqjja6gvF AqwR79vcjhUKEmxSvUe5A679pqrJfjUul2NvQM1xIvbhXliuBfe/o4iCBCOICCFduAX5 n8gBGJdyuaefNzMWvLeWOEW7YFx/KYPXDfV4KQCIxBPt9f5iU43//glNXRNtzJ2bcfXd TuMFJOYGApVDyW1KwyP14h793bwUJiew5R/4PyX7OOcWj/hf/A0CdtFJGiSmRdiKKWD3 6TAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VgblIRpp; 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 bq24-20020a056a000e1800b0068188beefedsi8177737pfb.88.2023.07.09.20.39.58; Sun, 09 Jul 2023 20:40:10 -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=VgblIRpp; 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 S230419AbjGJD2b (ORCPT + 99 others); Sun, 9 Jul 2023 23:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjGJD16 (ORCPT ); Sun, 9 Jul 2023 23:27:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2072d.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F143919BD; Sun, 9 Jul 2023 20:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MGE5F6oSsCYoAZsW5Mxia5nDoVMkL8Upz1vBnP2lFQv6QoGlSqxYPpjC9Oi7rSNXzu6fdTQcMQBaAjKO/ba88+WttNUqYRC+7GLFTCio7K5UCV457LnSoGi1GUpEHYzDJEqE0S7H/DAF/y+CxBeb9MVR92Vos8NiydUaryPgBaDF6ti0CjxhXCZ+3Itf54g+O4hYwjUSwu6lWZxcGM1MXq5PGR9MBQDV6hbftTGJjjFrdpfXfLNWbH7w5VePTgiPduIwy6jpH7fVf1thuDuuQUB282Jqjp4nFdxa6TDQGjHtXUchIJ9XRp4N45/AVbNMZxz27ikktet4CSADieJqKA== 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=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; b=GwMCjgfXE5IMqT7VT6gpmqaRoo5oNK0jr1wWmKHBsiyLuNzeukPFgM/TvEcq8sVeOe33XyZWTYivaO3T3xtrMEvMUeVsEVEqWDHd/B00mW4kmtwx8533bSer7HGWZf+gCK19yVrr8HX5ll7oZ88/ujdLssSXvmFCnKxDXau32brQ7yudM2wFpAhbsgjMCpGRKZWFFhKp27QsuV340BPoZ45ei7tqJxSbD8q1Adc4IavtYW4SqVFoNwvj3UpHIl8xpjb89Dl/sFHNHmGSIIb7P3oxl38dPp5boPnFc1zm7/Dj/P7oRZPXM3N8zoK5h6+fzD0CUnttArVRcsdyImbgtA== 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=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; b=VgblIRppIet+1bXdVbPWrxXzcE3smOU28Wnlhu6Y8ZoqnJEkPrG/Hmz/saTA5Nii0kshXU/Jio5MeE78HQZVL4MCbkowRJNYQSwhaQlskE8YtNSAO+XIdtChPDWdHMKUC8T2KClHQNx+g05hm7YmVl5HGsmiOJe0sAvLvvQMql93srYk8t93CRK8yPxmby14pq5hUK/6c9gik9T+E02JRLmnmE7I+jpdYmTP+e256vglevWQOlluIFL4DkH/0OCHgFnJNh/wYMghG3zzYG5J4aXnNeniFjX+3hgXP/6wIdEW5E0oa4owcMRxgNw8jQWq+OwcK8txvJGV2Yz+s9HfCw== 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:39 +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:39 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , Thierry Reding , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 13/19] drm/tegra: dpaux: Fix incorrect return value of platform_get_irq Date: Mon, 10 Jul 2023 11:23:49 +0800 Message-Id: <20230710032355.72914-13-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> 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: dbc6072d-1b4f-4173-4900-08db80f5319d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xHdabf4w8W1sAhciEG8ip8bya0k+LVscXQaQlH/V/PR+5R/xUZhdMfKjfiepr7Wx1uHw1611iBxOFhyYQE1peTxx1Krrt8Yq982cRod/KpnbVkP0Vw2+fX5tXVVL05jAxAXgKZpH2JrS55bpNKFRue1/GxUpHNKoYJBKxpOxmQyclTfcAF1u55vYr9R+5z4/bYpBHPHYTZiB1wh+KAcAI6py82OPIMzZmQenNcLmLE8IKf2T7FEgQMClB/jG0qRGwQ4J4utfAgG3FfKMRDEqUoh3Xv/c/Tq7ok3I1vj3eVgQsjXBvE2swkFToLSJoi2Iy/6e7/Q7Ed0MjnMoXGYUR1IAFMbD7pgueO9CPK9m5h+qfPbW8KTH9oQwjk21oMRqNQTHtTAE17qkxF34EHfwQ71cSs95QfApV97gnVlbclhC2JUXGCaQxupU0FNB6wqBUGAxjzMn0H7GvDK1uRT0y5g3NQXfqXPaN7UoKIaiZNaKiW5zlNa6PbdXvSPEotjdP2jXqGOMFWhHHRdo4l/dx8/qrjtKoNMM2HSZCZoxCSXPh5NPyODmGlGy2rMlEV5Fd0dgeu8lN4rGVsyWGpKnSRj0cCChIhqfcM3e0ZhS7mj1RqQl4Tp6PbIQxXQpd3nE 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)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(54906003)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qKap0KcjueWj0OZ9xBDDiolsE0PiKFV7k4HXu2NiszOYcp2Jdd4rfl2trfSJRlpYClqaYtZvSFjtskAL8LpV70leGQjK9LEV+r/CaAX99qegkrEqkRuFgoQBHCmvM8rShs8BX+0oNHSxtwsnwUthQ235b8p3Jbq2U3y8QCEdtPAWsLEQeuczK5GK7VYYFPXdzs7b6PLhchn9+NMtyK8qB+jcBuXEedpBjPF3R9aEi1rFrfCPZeVwpqCSktMVc6wRYViJ3ya3eMor1zjY72EZSLwqfqoQhT2q/3gbhdRNNsItUYM89G+fbFlcMCFSzTyva2oZ6hu4raYLNrdqgMhx36A/1W9m/NuN6v+qkcbOhFI6LMKDsPRKJFbZ7YqOaUHAHvn1U0kktBtKCJuezBp3+Hh2NGuQXjpxXndvCD9Hj+5UmJ/FAb+ofqxo6+Rdi6k7217X3C30H0nfS0FYvq7MSSBvTkPSSbykfzCutwtQTkPsktaChc8TtNKXjG577WE9JGpzinlQMKPd27PnX6hiN8CPjuibg8IPEqV2xF3bI8eLlzMKE6Bap0lJE/bla2XqiJJBgUoRuJkEikfA+bml4lXFoZlL08PsGsfFVC2IUqeW1TtslqC+RxCL/SO7gSi1I5K6yhuG2q54rcBhAloxAFo4UXRYVkyPBySwC4jGTiBz+xXc3jd8WzSyHgKi8G60al76Kssbl4THIkHAGQvUr8Sv6anP0RQdaLr/s+CmVrJvfcQW7zdyiXttHMCXYIPMSplJKoPofwZj3X65KYQLQCY171WpWM4rtyG+4ffrmIVhF7LgHg663aHz/jNRTCKHOpyHMhw3QaLBf6sh2b+WeIhjKLDbi6uX3KB/5wUveyrP36Nhgc4nv6UohOnpSCD1XiFdKp9+AReK51ua9gj4I6Nifc9MEsAGGkuF2D8uUlcqoS8aAG7PGim5Tn4+23MlwJKhBcf245ZNo/vK8Gtd1gDiINj8qt9HKnjdd0y+CYazQLVM9Ob2Jg+/ZsW0XdcfE2j2HKqPo6v2Brw6BMzFPXIJQWeQONJ4IWj4Vo+4A3mHxkt5qyJjksxjCHsWrdY/21AgWzQVQNqpsanTIfW+2cTLflD9RwoXigLemRiyWAY5LF0E8qmjbZQdL7DH8SLlbIHRMp8gZSeEKOTaV+Ay7foIa7Ki2Ea60DN3ZSa9JIetpMds7AvWZ9/qQJdFPzpXfiksm4aPxu3sf69wFrjJJbFQV5ApckI0yfe5YdKDCxEw+nAHz/H8JeDsAb+fy3CORbpyxONffEUagd4m5C/cPh1GGX+MkitbH0JmHcxrMiDw1hA2ypWa1v+m5M/xuIjDhhaCPuauYed8qt0WqCVg1fTi9js9KsuCyIISVn1T2xzBQq7aRS0uzF+l7VE7v/7idt3bLCJl+XwxOoTGgSctCLECA7+dyhr/Ns1ZeD9IZ/oVi658CebbG3T7hRXhrPym+PY2YbwF0ag8ilaP6ZvT4W3JTfz5IW/nkoKmnqK/lOF2pBErNzy7eOwJEdFujrTEBOdwJ4hVVpXuLuXUxZ3DjLSlv2lYLSZS9pSDUbwviv613V4fNxPVcWspu7oL/LSh X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbc6072d-1b4f-4173-4900-08db80f5319d 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:39.2916 (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: 75KM/uAo4k0vng/f8Z3ft+9v+nqCylhQ5IDCl4stZ2r6SXX/q5zmgxSsD2Wk3OHkPCfqcodLgOJ23B80CGO5og== 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, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003351616118886 X-GMAIL-MSGID: 1771003351616118886 When platform_get_irq fails, we should return dpaux->irq instead of -ENXIO. Fixes: 6b6b604215c6 ("drm/tegra: Add eDP support") Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/dpaux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4699def04190..f120897ce4b3 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -466,7 +466,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) dpaux->irq = platform_get_irq(pdev, 0); if (dpaux->irq < 0) - return -ENXIO; + return dpaux->irq; if (!pdev->dev.pm_domain) { dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux"); From patchwork Mon Jul 10 03:23:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117572 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4752181vqx; Sun, 9 Jul 2023 20:33:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4a8cPb8Y3R88cgHAKK1j82kBP7V8Il6zRQm1wotyp/Z07dz8CWJI7bRPXmVsF8z0itbmT X-Received: by 2002:a05:6358:7f1e:b0:12b:e45b:3fac with SMTP id p30-20020a0563587f1e00b0012be45b3facmr10002058rwn.32.1688960021799; Sun, 09 Jul 2023 20:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960021; cv=pass; d=google.com; s=arc-20160816; b=QWiplupEhjhEV3F0sDhYCIRzkoe4ezEXvkkW5J7fQKaYae76mRQVGaeO6HtgqHDpBe Nny8KESsbnTlGKGb6EJYk1MMl6HxiqGPMCACe4LtKaRvymNGVHJrg1MaYnGDnccCOp++ 7TGAA/Tynjs5SSYBOfVGMKyNuFvhuhc4/DhT4cJpOoxq61zjGGurZL2g9ixrtZg9rh0L r6nmp5YNDrvCBa0yvfYZL/YutT9IYo+oXo3sT34PBOzWGYB9OpccBB0amSthlflRLeL+ nKsiKyG0RJaicWp0s/F9l/eKE/h8c+gn3dCa1Y6ZHMWN2CQMplMt+XPbQ3IwSVlTti1p P3bw== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; fh=/TUKuXtSihbRKCahUhP0s3Kp7RuFd2daguP3vCYpJUM=; b=aTLS7bEMNPeu7urtelXlCrnBK2SeaAo1hn4I0kU0Wjm50elV0SqrN/X+St4FaB+GvI oREF5kjc3WK/jhD2jPIMdLuxdjJDQywIDYmwFJ4jX4mZU15c4aLw8FTuwIC+7cntdTGg afm4BTW+OWGL1UjlRDtK44m+sGNJoJQVdlBsodSpry+BYF6BEoORbcdaxv8RxQGK/C3T Iu0JuqYyAjjS0lWNvODPpt0gGAfad1D8MUr5Jf5iyxCfkXlX6LZT9WJyQshvcjknATd0 Qh9aRlWMCzNTIyrZ/VWIHB8T/tv4giM80b8xDkTlaOs6nOuOsizg5vqIJqq/AiJvrzvE P61g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=kmk2XvaT; 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 fh21-20020a056a00391500b0067a5e893334si1006533pfb.55.2023.07.09.20.33.29; Sun, 09 Jul 2023 20:33:41 -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=kmk2XvaT; 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 S230340AbjGJDZ7 (ORCPT + 99 others); Sun, 9 Jul 2023 23:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjGJDZ1 (ORCPT ); Sun, 9 Jul 2023 23:25:27 -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 D45771985 for ; Sun, 9 Jul 2023 20:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IZCMSCM9hPdVA7kXan12Uug2YkOvFe30WR5N+1k6OT8e5fl6B52B/ZA7pQRnPMGKWfc2Bnk7VKkJhFHBK//dlP7S+3FQh52wE/udL18oOQI8QI292hVZGWq57RL1cKRXtVdMyR/spx33+U5xJvw533ji24tEvpq6CfECcwPoLqeIODrk0S0jnkgVQnaFfcy1zq747NU3Iq//NkiNGWXkHW4MM+/EDT5jYeO13NbKUtm/Og976ugI7sSw8m3iJbPmdZ3aDB5ItbjGFSDbwDmbK+OQfhGx6O8T3o+SRU/IcJ4M2Wb1RAsMo6S7yS7oZnfpHkC0l1XdvcW0BTlhj/lj0w== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; b=EarKwtMvsZFu3VoU8fPEnrcDQyCyr+sY9+/n+T6GVjpTi2rPprNvFDs+PPFP0jABefwz0hA04bUWj2pTVzl0PiEjUaEwkvpm9/iGXtoyDwiqk6JLj/Aiftf2EBlApQJ4A7F7aMAC7Y/9chl49hNREejTFOXElivImlDOl7e69BWUvTSFI0VFhtrNdZpYjf0zFwwsYpMprloiXlwqjbXZpnjUJp0oXb6NzUuQRl1XRoHNw9G0mrCYj/c8yfXKIYbDaVCyIIQbGgr7VOd295T2xJBHJJs5iCVoRS75D2Q3Tx5GjmbEcuawzAiNIgiQvUzvqo7X8sBxp6hb5cKwnhYFjA== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; b=kmk2XvaTze56PrGDdR+t9SDmBNoygcTUwWPeojZuw6pAbjy06aacUXtnpmuo6fPmTZtSATRl/Z064TD4mGcgEjRT/sQ5ROnAFOM91/waie7JFDvAZ9uWO8FldxxuaeFDvioyHe50c1cqgZ0oHYMtdGWYFQURA4R/z8i+f9UD8JFW8Ao6VvBuvB88On5deT+X+LzRzuiFKztGFuV4Y9KZin3HpnDEiblsz5IT6nqJhQSG4+lhPYT0mOO4BlOfip49dgAkGeFPdVbz2v9P6TuLTeVj/Ck4SCmTvr+6sRZeWvK39eOIlfmvwW8rT6IrcRso874Mud+mzcKz2Ykqlua3Jg== 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: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.028; Mon, 10 Jul 2023 03:24:42 +0000 From: Yangtao Li To: Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 14/19] drm/stm: ltdc: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:50 +0800 Message-Id: <20230710032355.72914-14-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> 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: d6e5b004-8093-4b2c-1d25-08db80f5336e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HoaeEKf9Tl5pFIgJJoZMbUxOUIdJ73rQzoOFaUWAORvKmaLqjSCuPfXhOI5W/FRHi2xIPJQBKSbUP0/oLIGAXRXoF3/uOcej2OcJbRIm9nLKyPP2FG9pe2sx/KrxzaQ9z6hGDJisxXSa7rfBXDjDfagkVaCgztZQMDaI+MWOP7NUZgsiD2NOT7IEy0/PiOFCjqD7Fh2PA9ITl67BoKAtTquujkBO7s9gRe8YwHyA6HQnKVVJ0Wv/aLZCvhonTaXekwTEZJcBjeHgQ54ziJoM4o/Y3xGSXmVF0nk06Ve6n+qd+2R99w2wNw/tDHMWLtVTWXRM78ukQ3u8uwepyx2hgulZYzxxS0gJRPbttgs++hJ8hZUGswIXWYXi3193H6zokAQuZbov6yB/W1eCSupSeNBrAnu6UJUrpc7L9smoA2yaBrWpb6+Sa7AP+m80EKtX/k+ypAvG34Y+5OTbZ5+Dlz4L0FVZYEQtCP+jrMUv+ywsqYNlkXFF0047Bi9Jo2oBvgtuzbjcwdGk2sk8x16BJ5yaXK/IrVzrSUAwLPCP7YcbsTx7g1DC8A82i3iHZDg/DdhsH+g2HoLLQmRi2+67F5LpJRXzeJyby5f39XxZjeXU7tiwGzJerpx06Pn+SqIE 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)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(7416002)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FhLHhqbbjlOpcxLTaxHnMYXjk9HN?= =?utf-8?q?4sQCvF/lH2AIcXetakBiax4D2fTQjM9OTqZFTJhmZu8DIyeaD4dcYM5acFmuRA+4f?= =?utf-8?q?J4MBLwXcND81MTe6GVKbdhWuUmb583lTg5dHNYeSgOlDfnMh+TzSGLId1mCQZiaYa?= =?utf-8?q?4zqI15w5dgK8PCzrwjBMh6TN8M3p0mT/ExyGQniqfoTFvd5K9Vg9kGhm7i9WjEltd?= =?utf-8?q?JyRLDVBNogpWa4m15k9s4fRq66uxp563qDkIjcAs4NC1WjKEen22tevhtHnWBGz7T?= =?utf-8?q?Ohp5H2djUrZEEY3XSIj8MMmxJYTDRdBOAfiFzzsW6rw1Qiue+beH3oZId3U+8zLJ9?= =?utf-8?q?GyKQTIG52PxXO6Q2mjf3gctFEzqok00oOKWcvc2TEcM2944Dz+EGLQJ4WC42GdVmY?= =?utf-8?q?dKBwE9aDdpLoamW+KhmUXj0mjVKlyRhk+65XmjPz+xDvr7wH1/QrpVoF/aGVZLvGk?= =?utf-8?q?YIFKquFsxliqwHjlnwCoKrikb9ql37J5+UpWJmBHt24FaXFxhLb9ih4RNCxTiPlhk?= =?utf-8?q?tVpQ9U2GDyVI+CPDrTmfUtWL2Huyvvj2433pvN/+IT0bbtM4t6qQTdaCBtrCOpN8G?= =?utf-8?q?VxvCzjJR5nFNJOR08YIoCWpBPC4ExH0e7M3uNZY8L+YFG88WV9hGlWi1iY5WsaKpL?= =?utf-8?q?1CDMAOPxa0OeQfYflF+Ro2Cz7tI3fYh1kh/osDYTafvJvJ6PF5nNYu4M1uhlswa5S?= =?utf-8?q?kwHKbSbCNCUqRxwxjDKpenlp8R59N6BySNefLj6Kiy63XDKNMcwFy+nfOZhumYrM8?= =?utf-8?q?qzaezho/BWxFF/RFAF+rBG+10b9itGSOobdX6sWCAkJtoScJLaaxs3Bv4Xmv5rwjD?= =?utf-8?q?HjWY+aZ3L3UvgFllsoma+/gZP2c/nPTa8YcJAcnPqWoBxwJffbN+qp1CX4Aouwp5T?= =?utf-8?q?WrD4gzgfbN6E51nNBME5X7E+7FXJENV61rhH3k4SU0xMouCcGTuHx2X411qpuCDaD?= =?utf-8?q?Q5RFLm5GWOEtNj9w1knZh1mDHdolvrCiJxUENeueOPlCL6EYlybT5t3iIw8+gsUgN?= =?utf-8?q?KPimBSVg004C0VI/pXKcyC01w/AjnzGTPLUYZjf7D4mf/zNHL2cr0d9x05ddHEycE?= =?utf-8?q?IoyGd2HQdSrn4LJdX0DzGvc4ZkDSj5kOxMAjK1/BxlRQfPnVdNFkBjSWcse3VEcIY?= =?utf-8?q?YcSXwn12U11MtirigjMWt8i8MurrouOSrMcvGYAvF/BDX6mfuyFGBqQVU0yE0yJ9v?= =?utf-8?q?Bzpc5EBtTECd7NqUO/ZCij2rg10aFR5xJqkIXcmFCMr21diPS6oEpDRC0QlMBJTtm?= =?utf-8?q?g+M6sVREG6SaorzhOWVbiYxyzTR0wHNimIcwE4gt/yDR+PnDGZwOaPRtYJhzN3+Ya?= =?utf-8?q?PokqeQiz9B6pvwwZhf/CDlZK1ja8hcG1420pAj+hZcnbR8Z0UAxjL+MjWLDgQk9PE?= =?utf-8?q?TEhXRfPAGmfCRlyBYP/A6+/jXwKp2/BLC/R/d0MlE3owhxDUdEEV/ZsXas7wLrKOj?= =?utf-8?q?CfjdDWhCjnzhUGPqJxFb2LdrX5lWY8CW8upcv+0gv+JPpTpIWvEN0kk9PJlUmUEjV?= =?utf-8?q?Lq29rCjj41O4?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6e5b004-8093-4b2c-1d25-08db80f5336e 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:42.3384 (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: XSybH6/Mm7VDh7yy9avKfTjb7KtGW8a3hZP+hYSULFK3ZcHBbaDlsCX9c9BaTMkINBBCwTRULJf0gpJEUpdswA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002943756241591 X-GMAIL-MSGID: 1771002943756241591 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Raphaƫl Gallais-Pou --- drivers/gpu/drm/stm/ltdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index b8be4c1db423..734dca4d7dd8 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -1925,7 +1925,6 @@ int ltdc_load(struct drm_device *ddev) struct drm_panel *panel; struct drm_crtc *crtc; struct reset_control *rstc; - struct resource *res; int irq, i, nb_endpoints; int ret = -ENODEV; @@ -1992,8 +1991,7 @@ int ltdc_load(struct drm_device *ddev) reset_control_deassert(rstc); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ldev->regs = devm_ioremap_resource(dev, res); + ldev->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ldev->regs)) { DRM_ERROR("Unable to get ltdc registers\n"); ret = PTR_ERR(ldev->regs); From patchwork Mon Jul 10 03:23:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4766329vqx; Sun, 9 Jul 2023 21:11:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlHee+lnIxcrdkKv5VAn9zxNgbI3qzQAqdhRd+Dvb8zU5nPVhkrD0uY22+fkI7L2JkXSA89o X-Received: by 2002:ac2:4e08:0:b0:4fb:7381:4c69 with SMTP id e8-20020ac24e08000000b004fb73814c69mr9569480lfr.28.1688962271388; Sun, 09 Jul 2023 21:11:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688962271; cv=pass; d=google.com; s=arc-20160816; b=SWk/LeRcawWra4PT15orG7zaCIIzC6wjzdFhhJIkKAINupBs2qQ4XVTOkVAm6lVzhK jt3+UDJ3FUpwE7L/641i4LZSMd6WJGfeFKUGbN2n7spYnpytASFyk9hFQ3Zlv8cW79Ea za4k/iQNqe3frvqZ1xWLsjy49LkwmN5Fj8P1NSaDHvCO4R7HLUkmED0KTgMrOKQaKP3W 7vbf46IC3+620FEUqeFhKp7UVQNE+uWQKstfMfAfOVnocuIJJDSqtUhlqvfb7geGYF4z c48TTLxg1MSWtR3m0Y0UYVrIt9MQQXWN4+fDWxJPswumv3NIGss2p9NALCQL4SnFgR6W OFWw== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; fh=T066uiqTjxYahUH956oepKMkel8Bcf1VtzASGxEcXvM=; b=bJvj5EJbsp3La+yG+UXIyfe/a4oPPs/CAgT+OWZOX8vtD9ZdjtCgtO1DbQbjj+P/u2 rvCgp0GwY5xJZs8L3DH5+Hd0WeomEuxT6IJlcu29rVKvdPpzpwM/nsdWmgE4R/g/GlVG rqTmYhv+EWzfY/alXIpvTktcLOaxS7G/87FmF88s9r61xpW15yhVp4NkNgePJ+wJ13Pf 10QT4BhyFUCJy8dCKcrigmOb+ZuBClfdZb4WKgXJvmqZC1yXTMkhUdD6W2Xo/jFmwm07 UfGANKytwj10LPRCRgLhMmIpOeAkC2ZC1Cxv3qFapnavfvWdblJftmxIAHFTdk58XtPM oqOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=njtuL3O8; 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 z23-20020aa7d417000000b0051de2d71329si8167650edq.597.2023.07.09.21.10.47; Sun, 09 Jul 2023 21:11: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=njtuL3O8; 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 S230360AbjGJD2B (ORCPT + 99 others); Sun, 9 Jul 2023 23:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjGJD1K (ORCPT ); Sun, 9 Jul 2023 23:27:10 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A687910FF for ; Sun, 9 Jul 2023 20:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dh8EgDO7ZHDCI3P9AJhVnGh0/2aatrqWMzCGrSgYmQzmb2FH3tzdL0DHH9Sr8dDj4ntLJpVh2x/WI2JD/ZIZd+XkJX0Uu86wuDeRafDR0/5suHwI4ebG83wQ565Kz//DY2tQzv6TXZYBY4/NdAw+uaGLmRnWkHdV5wNTVoxketQXH+9GpAvPd4C6+pkBpwXErrKTxwiAmLY4YjQTV/gpYiEI0QvcNLd/GlxwUE3w8lVTRsgfYWUOHIG21NibPppXDZAA5gAA9A51OwtvqImRyQhxCIPKN8TCBAQJvF/cOmmCt614aBqvg6sb0CupZfFXpkZas253j8t1NIjL7mpvEQ== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; b=n1XZ4bzoWiwm5TnQknHimQ+AVJfFg892BttlnPNvNiuyJHKd/21HT98YKTXDWDC5n4klsgFguCBgzd8+ARWZVdNd1xBmCfAOj4xJxBX1KQ4KyKTELwvXtwBaQPkfnYBRQ/LdctNpLvFElndT74DGgOmG1Nhx8IU1FDUvc7kld+eB0YN10jTnIffmyh0RfKMO7RcJEfFiAZ3sr/Ee5x+BULm1qPhXu/wcEoHAjpMHGTWPYYlyR/OynN2hRLNbyyqyLzs9cPSrqTCl0aFIMVQUSzWi4nmTPeSxp8RcjyyIVIXJznMhCR+7FYhKvxx3gNpgV/l9PbyrA2PBP4p9/8Dobw== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; b=njtuL3O8mqL3up8WKbEmi9NaT2dBnetbfWUaVU+UGqm6OdBN7F2eh5LchARWbYlbT4AbGrHnwFDoMU+I4738o9nYHxTzdZy/ZLtk7OglAK+VanZD2+fbO0QLSjGStZKUPbDMhsejG2THObE8BhlgeEHFROyZzt60IF45wLBsak01WNcFDsiRr8v5NCLiRFteXLhq+6C1Bs+Ef2adB/D5QEmcLHEHEJRLtMe6pEj0TE/CTMi31bwPQ0naf9REAEhhqCnHMWNM8tTNOgqNXcmFKZiangjGd+7MUYcv2A6GdFFatmWe7ldlt8PHK/PgHlxpVdiM3KEArJab92cO2H6Aug== 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:45 +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:44 +0000 From: Yangtao Li To: Joel Stanley , David Airlie , Daniel Vetter , Andrew Jeffery Cc: Yangtao Li , linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 15/19] drm/aspeed: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:51 +0800 Message-Id: <20230710032355.72914-15-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> 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: 6ab087a7-6fbd-46f1-fce1-08db80f534c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7b7+xCh73WeozwqxH4Du7EfSc2yap085JqWTibyAgkaB6EaOFalHwS6EOCD/aWpUNu1rpcA3mpeUGECaILuk2WZKKxZY9DhwzKkh0TazY0yCy55Pwo0yXd0RIXqfibTHch4ERW4HAOi+JA6jQxfrhjMHNrMVJsmO3zbMYniubIcuRTS+YT9KGTqOmIrZIabaQlBynWpafHhLijJKpqaLaO4aSinDxfAOBMRPbPG20byCbgtGXRklNi4PJQdNCupDFnEk3hBa+z1/JYgVo7IBf1dyMCaEVXIQgyO1MwWf4kMiBRguYE9YHrmeSkzWTNgcLRxxl/fivyKy+zeLGJssTN+JCAguy2wgEnCpjRmyTLjR/kaoHwPro4JMtBt2DB3kiDhJMc8r98meIYaCLbea5+AAqqVC7B1MAlOTm/n2hcwuXpENz6BWxhEl164vzLfDA8wYvZSotIPr4ZWkvyB8SxnbZIZRq4tMPtk8cKZ7ACUg5Kc7eWfI9vtllbEoWiIKlloG3kcTqrIOJP8C8PdSUN/MrhrmK9287Kw872LohPp4317W7+B1ILWNYqHg/QKgS61YirDJ+zCy8LCfBcoP+OXazn8qG7ai2mUg86EwfaZksf3ISzGHfrmO8RX0VpGw 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)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ORviGm6leSCCIgZTOk5Of8r2sQIVxrNlj9ApbOcJlhOhdVF941p/0UHdYM71S//Bp9izC0F+Eg4jwiDTq/lVglOye42L5FpB5AnVXb7yGHXjNKF2bH1wIIOahVyvECG+SYxJkXL3p8WIJLDBPwQYHzo93IqpgBxtSEz/8M+QxwOrsqo3RAhZ+vSptaIdxRWZnYpQmpHDDeXWPgNRQTkAEeVYLQSMdOYyhEfSR+oCdBD0M1x5a0en5J+zfUsHgp2F8eKXuusyuE3E5ZALiRV6SzCWD4/H+4YxXJ4d4BbsOhxtJTxNs2b1KYfeG8NR7h/gNO0JpKReWVLhAFRu0v3xIoz8Y34CiPnXweqk3uFWN3+Y6p3q1aiiPA0pXsTe8sK1OUcmxEGW5QZ/bcwicYjzGB935dDjxPvO9kOTDv6Gq4VZlpKjsqVpTPtdj7cfufFAmuqKZa18YOUk8gHzZ4np7hI7UDYhxZ9L7on7AtFfYypcQZ4UShG67SWq5uYWCAQWY1yZFxTd4qW1SUAyMQ8zE36LOpMjgnIQlkFVOvIDNa7YKhD9sb4ldW7xl8YR87I+ogy4D3vyKQulGMlDj6ZfMC7sk9PaWBKEAzmdEF3VV4YiOzZS2I+k50DCftdXwTRoz3hmAj9HW78onCno6Yj8pXZaiH6uioqPSgitzsaDoGsS2dOB1nUpjFfr++ZCMSZ6AbjF+o5DKeHBh3kggTGSge1OzpoGdeYn0JaCQaK5Wp8urTGrtikFmOloRO5eWnCY1KPRUSKHdKt9OR49k6EL+J5XzDaPG4+pZpnTBxV/MyLZlb0ojWPQzzvyVceZghjIc/OphXYju6o4BkuZH4uBpB2NXOMK81Nhru4YKLgdFJzkEO2Fldwj9v4fubE8OxWNE/7SQyoKAcyyum0gZ6KQ7QBCPvad1hAkYyza3obZHNPszCDcyikkQhl+pmfTTgHvjTgGAVMtEBB8bBlYvXl1p9bY3WzFQDZgjDxi0in9FauK9cdMc+1HIvRX/O64Z4Hy9UsyeQ9uTOVnLbWdDUfi0270BRPR9z9ku0wRzDHoHCDa7w0wyvyXq1Nj8jJ4jGieLXq8vtX32BGxGaPQS1Dn7O7Nz79Faz2Y7cyCax4S5IkqL5IX6qZV2r677ny6R5RQwoYouYmFf3+DqqZcswpCCdzbnx4NyBUI4fhGoZnIGRMfO4xFMKPpNYG3R4ddsquGyUU3bdNZiG3t4z1RxCWb8GIK9deuXfsGs0olUNsSa+S9i2FJy3GzydiouV3Lk6WW//Vsxq3JwM3dZMlqlMylxmj15LJnHtZsE9v5bOymPuoN6uOUU3JwAkmKLJGy6aqCV0nlbiWP9lc9D5wLChDUXPycjIoblUtFWoEsGKa1p+K4EUWNGhn0CyGBqzN3jpvsnOCMF6x6ILHcV+2sw6ZsBQgWmiAD/SPNelPaPvE5k4LQRkXv9ZUXxrQX+UwFlsuP1gCBk6jkQHdULLK9vWtnwDVxhqfjvmULr6jgrf8tqYL42DD8VaEGXm5okgWgoZ8Tta32GJew59ZFLTroK2F4zYYTzeCY/RN6COlGn0u1A/i0tQP1uso7Gtogoo92YJPD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ab087a7-6fbd-46f1-fce1-08db80f534c2 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:44.5719 (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: N63Kza7frI9lcXyBkGt0lLh14V1WFqNFjji2m00k+9GcfU9cc1hYL1kpvU5K7tOIxDbADjxovCEOFx9sXw+7Kg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771005302623748562 X-GMAIL-MSGID: 1771005302623748562 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index c8c7f8215155..d681248f098c 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -144,11 +144,9 @@ static int aspeed_gfx_load(struct drm_device *drm) struct device_node *np = pdev->dev.of_node; const struct aspeed_gfx_config *config; const struct of_device_id *match; - struct resource *res; int ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(drm->dev, res); + priv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); From patchwork Mon Jul 10 03:23:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4753792vqx; Sun, 9 Jul 2023 20:38:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlF63l0/KEuSzVbkk8i6/6/yny1HMgFa2CjuncXdbPtKWUwgMJrj5lebMRVsyuZnmo76V2+e X-Received: by 2002:a05:6a00:22cc:b0:666:d78c:33ab with SMTP id f12-20020a056a0022cc00b00666d78c33abmr15679880pfj.21.1688960308428; Sun, 09 Jul 2023 20:38:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960308; cv=pass; d=google.com; s=arc-20160816; b=JQoxBkjxz+AyBczw4j0MszNYy0Qh6s0TjBTTR/e98g5vKSVlOa7OX7Oadp3X71jvks j+MnXyBTIRRNkI1F2Fr1Ga43v0qmngj+VdK2U78izlf7kDxPnCKd98HN66tvNFJtAi/t iWt3088VbsmyvJjt7j03+TY33RXWl84J0rW2ObOc7q8iwoYQiT5Ua/rMooWHLgeqwxe1 EI96EInz8iaCBbCzI82aIDQ5iiY2zy/VF18T/nymNn83grNsomh4+WlCZf8PFBdI14lh A/n7FWMwXYcxRytiAqbp4kKzLt5QUIYRNGHYJjd6wnrF5NXWAP5wL+nj2oqzjlZXu+pw VRGQ== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=FTHUwNgJYW2LzEbNjjtkmcytoExfsoTevmE24+MZRZY/a1E/VAgdtx6c+d4j32k89j LbyVueLRXJxW7H2dtM2Ltz8xAmfTP59PrFE+DMQ8o/m7HeFU0fKGxN+E8b1cnNgxDjwS svYDOVppvMCKSoW7//BqTqTwri6SNzKXHSV9IuZpf4xlo+ju0weqmBw3SAqC/+FWT9Lk w1QwvCSRjkGkeUmmX/XriQvhemtJWk1lloA5Lbhll/yVobQfdFsX+ewDh4JG4YYKSx5o 68ARg3OIYnkR1Zi+pGZvCTauh8UQAZS6WbcweP1/ft9OwfYl57PpaUtBQfzygSFAINIq LbJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JKCgy31r; 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 y8-20020a056a00190800b00678243b2774si8148750pfi.78.2023.07.09.20.38.14; Sun, 09 Jul 2023 20:38:28 -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=JKCgy31r; 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 S230358AbjGJD0y (ORCPT + 99 others); Sun, 9 Jul 2023 23:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjGJD0K (ORCPT ); Sun, 9 Jul 2023 23:26:10 -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 CD3FAE46; Sun, 9 Jul 2023 20:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eZzz4AerefYKjNUryNaI/DjOB+gfMwSl3ENetGy6kIU7iIowAeD9QNceszB99x27VKjly/68cE7+XTOdO3hc+sP4gwrM/flTtFME6c4eiRBvQkiBXX+prEDw0Sop5q+nboIOflNzJLtbVTigsEI1zGBvhX2trxnlENZ13LHL2dN5I4YfraXUF0T0CufquhX6Th0zvRSLbp8GNLUyfnEX57DIiC5ZqSvI/FuuPP3mxDInnLrFhlypFbU2gzHRtZJzvarElmEVtgbj4o96sfGMdkoWCBHJUfPtInKLy5lXlyP0kXbQc/gMfKbFx4ZfuIFkEBT5Uxf/IGhFICbfRFFsWA== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; b=kG461iWmbGnacaGgHk9nGFPa/Uq3UMjkDXRH29WRzr10K+ssFVluS9OahExSfXNaoND4rUrB3GuHFRWWFlM/g7k5R09IC2jZF2vAVNgKkvtaxzrpZASpVOxpSqOQK5BdfS4A7Fm4Aml/33UXQoqhWgwc0fqE8NMI3vPUWEqSlt+to/fIIbe5CzImxlU1udGyDBPLT6WN18ZnaV9w+ArR+92v/5QL+eNcafGDhKlB8xGWKeKk5a+iPegZCA9hTZTSeBFMCQvpa/fWLGxIgg5RquYedLsUKlafdJ1GTSIlav9KwYd6fx180zkd8SpWPA8PYxRuVDmtPMOgFTnRL61cVQ== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; b=JKCgy31rtDlogL+ebHzNVDqybtIuoUG9/1ty4va+o5rgEB8RmTHSMXib+ZyB5K8Va9kLynivBo5Fa2hjectYpgD14vI0OxeTuUuOiTYQwHgEhkdqntS68ovp18lB95eHASn8BUKpiQ+VW0oowyqPVHhN5P+iW1TENaphJHsKcxMI3osCvxwNDghth4L4E7DMaIp9Gen+dUV2APmteeQ1H/gM7GT6d9GxzPwkA+jFUEYqlTa3hFYd4HhSKI9mKb0+tXGNNCDWqeTt1gjSOv49C2Ia7za6Icp/NHwb7JZFXBCDTImh+dILETHOPDMDAV1X5DBGD+etvP518Bl+7uyP8Q== 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:47 +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:46 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 16/19] drm/tegra: sor: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:52 +0800 Message-Id: <20230710032355.72914-16-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> 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: b0c4bf3a-f947-4da7-c7fa-08db80f53623 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RkZ5UTJqxJK1MDMwcOW7/uEz2jEH7OTaVmlXj5bYnc1F0YaQYWByoxVRpCZgR/YbuucRgF4wpX7YHfRWouWNwb9EbRqRMtOUEBIzDhVtAFNhgA/JlPRQpZmKyjTWhe1KKA9C/zE6dNhmBJUIQ8fzvbjLJginWMWWmpAyEQpSlBfs6i7B9PFEWrGfH3KKL0WVlIT4x0J9CJf+ZWokwdJVW98RGyK+5Jj5o2FIZ7jDqoYtuVumclMmcjYlYLD9PzCUyRf3zMrhT2OINvThl/vLIYuEL7TQf5pl3aGsMWfV6fM6bQ9MulSkwK8zB9yc2831Hp0EdcOVX4eisZz0by9vdvFuZv9BiD/daq685jm1XTW5Mv7vgge9R10pLMKAeA/e4qInSjOK/rp8pp5pla2pNYwCR49BGpTb+QyInkDX4ewDyucMDCx19gElIT+Z1OSutXzD834mBCnOiVi8anzkXdRMZrPSrQKZ8ygw1rtLbONGqIt+DqtNznM3u0U0hfwDDZvAGOGsVxlvlpNpl9oyPPDXhVQMejjuP6sT8C5sOUoS9ey6Ybj4lnDjNxu9cloST2dluYEgPYDYydQXL7kc8kPA1yvlmIwpn+0b67BvnUDp14sP1HqGEkryXMD7Z1rU 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)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IsZ6HUVMG09iSZ+QwVTiFgoU0SMGgBdUt+gZTVYHGnbk4FLuufc7/yrDR/stwS4wu2Ytg98j21REKmvhru9sk+tLuvSjeIeLgsyUyMsYXt8TdlI/iTvcBK7sUuAyD07p2YR7os7So8QaLGpnAneFNtxQx/dBSwh/2skWjCuX0RNzcQJ7CTRdxKLJRXib0WFkCKp7csUe0iwwN+oIH2xwp+G38DxYMF2ngFu/62KSq2KI3PNbsytOqhRtSoai1MLCz6UcGcSLDRZ0fnv8J6OYNyjtHAgXmwJj6WJWPjCAB+HQAj1pauzR0ljeAvCx4K5AxHo1YIXYkJbC0iRUV5FGhWNSN0t9NpDD9DoN/NN+NQBvM5G91Tzx16MAU/VdAAkqfPXhRR38V+07Gq1v0K3nUTDI3zTVrIsb9Gn6u+z9Q9GE/DO2VOd7kScqOAXnB9yISPIpmNJFOqoXKUSexU273LVEOfswWbpv6z7VN7+FPGSag6foPzxDZ7WM+vbKVqA8MzLgSqAdB07Z1r+brMEKsZz2sdoEKPYw8jDJKZxf5ua8zghBkIwHkZzUYuQ8GLErcoB2TLOSOBkCEZdgd2n4MBRM83fuq7qasdyrp4GT1RFncvq89Ek+p0ikFRZVz9X+tutBRzxvjiFzThaRgYJOciDsLvoldLDSQGKxzrBroJkLZLMSjtVR1oSD/SX5Y+9lUeldel4MjsCTia6TYkBC5Ey8wzujnnPj6HPrqft6ayLoANQ/h/2kEX+mzSOYBrUHrBkC+4IbvZrUz4E+LNnJX7sqpFefufRdWt6WvmkMb2YTcCCy6IVlslgsJV3X38GYP9kGJC6dTMAO1Db7VxqPGRbWqngeyVNf0KZ8OuPWGR0BLbj77XoCtI7lfZNF4yvF982L5b5GE97uqkaUO+NOP9jsBSNHXU+O8YdjLP4aR1rjVWm9didek88x0Yynd/+i8HTPzLvfoFJhryxatfic791FVR/XdOQqcq17Dm/Pw5ud6ebaJAwD5TIEVS81etxnPUwii/NeLL55AJrCYIGO5ZPosZqwi44RClFskNDsL2RLjwKunJkX5NsF7f3tIrY3UKMZdSrQL6jSlqqonpHPj0kOaJQJs+9GkKJZyRSzJTxRxoxEXCDQnnL4790KRaSx43OEWxsqSJqaY+5XojGhm31aIUVZAUZZBzG1Ur+eDYyEfx1RANUsdwxy5GFoUl6YoaFDYmCssh9pXLaLlkVPzHNSGyCebgm8bpTVN/S1EwJpMU3UKZ5YO9C7un5ZnWcxXWS+Tj0t2zR8uN/jyAFrblgalxAx0FetQndxhBhleR2KQiW4eNUNcUicdPdffxg4ZBJ00T/5G82kpVyx8INr1/a0TtT9O4ZN+nW4L4YQlkL/LDtaVRL052fUVo0PlGGJDLjp7/CyncIlt5bjVHtS81jpIYeb6LQbTemRrq92J7RmQTERyzhAIjRRYYyoYWZo0B04tTO06YIa318KGi7Jw28uCMDIwMPzDnt/zwmfWsGdJOdB+bCTNhOaQoOds/jCw0s+9Zo/U5XjHujZfbVvXoXWkHJdI0TFAFaa8NCQHFbVEg9bWt/+RGypXcqB4hL9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0c4bf3a-f947-4da7-c7fa-08db80f53623 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:46.8885 (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: yeig+ctKAYL77wAh+UAeTcaxEk2pjXVsUNLQNXScVDH2/d2zT3u2ix3yXMbhv09UtcZdIkMYbIB8SbL35zv9nw== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003244385751364 X-GMAIL-MSGID: 1771003244385751364 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/sor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index abd6e3b92293..f23d54626883 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -3708,7 +3708,6 @@ static int tegra_sor_probe(struct platform_device *pdev) { struct device_node *np; struct tegra_sor *sor; - struct resource *regs; int err; sor = devm_kzalloc(&pdev->dev, sizeof(*sor), GFP_KERNEL); @@ -3781,8 +3780,7 @@ static int tegra_sor_probe(struct platform_device *pdev) } } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sor->regs = devm_ioremap_resource(&pdev->dev, regs); + sor->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sor->regs)) { err = PTR_ERR(sor->regs); goto remove; From patchwork Mon Jul 10 03:23:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4763522vqx; Sun, 9 Jul 2023 21:03:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNC0NaWK9DFXwxd5oy8I3QPmySODR6hwVAXO70YShQVLEvynQ86LU1DDrj//rp3BGZGTRK X-Received: by 2002:aa7:c94e:0:b0:51e:5686:d0f8 with SMTP id h14-20020aa7c94e000000b0051e5686d0f8mr2687680edt.10.1688961839640; Sun, 09 Jul 2023 21:03:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961839; cv=pass; d=google.com; s=arc-20160816; b=v/AyuHzTtNOfog8Knx2bYr9Hlbbm3b1xF3UZVpcU7BIFujEdpekeuCfebn5zS5DKzn JB7A8j85ocXhveHcoUNmkr8yp+1DoJGXUdzludTx2V2+MbDj6Mj7M9Th1lk9z4Ul1DjQ t6nczx+b5JOowAJa+pM9UlBoerHJP3yRYlh84JTPdL0lJA37pjiGuSpc+U1twg1FCO8H mbiauHCViWIVzH/G/dAwVuLaZSnWzVGD9GHSaBbLa+RkKFAcubSpSZSQUOvoGnGfhsye AtSJq7IjsMh/ztbg14JTKWvnVnBlHwnFCGuabm6fZ7ZLG3cWsQYcqlcV48TrKQsKPIlt EUDQ== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; fh=Oh/HOE0AiPxeKVXP0lvD0UnG5r2/XcF4myx1pA2e5lg=; b=0t9e/oycs1MJvVppTfUZMEtaaABc082XqDUnkFqpNux5Jh63PxM/9WJYdvdZCClQL3 AIcOVTBiqMgEaja91hkd62bxN+iqjYq4VxvMKMegixB4JVTN8v1ogCe50+uSLRzit5lr pt1Ru04qe7gz35mPAjs4L/Sd6em0ci5Xi4iJcblwwy1C+WQMAtCxDGA6hKJzgYuVODWi JVuRRNgGqIz0oBLZbSztMDpvpYLOaRXK+/GC8loemeydBBKevJvEDX0JjOiI220GsRw9 s4j56Aww0rMhHVaWRJ6XgTFW3k8jJNCM3wEHOhXQx50JdHMvvltXjA6ZVzupHtgEirOP yQFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=YqJ9OJdb; 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 f22-20020a50ee96000000b0051e26704e7csi8694026edr.7.2023.07.09.21.03.35; Sun, 09 Jul 2023 21:03:59 -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=YqJ9OJdb; 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 S230311AbjGJD1y (ORCPT + 99 others); Sun, 9 Jul 2023 23:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjGJD05 (ORCPT ); Sun, 9 Jul 2023 23:26:57 -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 CC23D10CE for ; Sun, 9 Jul 2023 20:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+NzCP0bnE8n0PaBsz1q+DSQ69RF1eFQ97XTrrtY7G5yzTvJaPL9nfwH0NdR7BC7NsusDNQeA4ZqF6+YwVuWli7Or+GdVOSe1Oi13K5r1VAKvNdG2Xop8K8yWauIEzfLVxizz4vf0qDu/tDbKsmt/V1SWCkxP5ZjjOD+LE0QibpNsY21aZpPvkpez6Gv+3i/1tzjechiA6N2JEUTV/S8jswm3jsjpup1zErwpluHlbxz7rvDeYjlHpQtgFNLvsf0VZOnUZ+C85y/xgtgteeiV/s7E+hiE+I/DR2AQaV1ryCt5XtClKgPkpPw4t90b5hgWONqCoh/sPDwZYPmf+nXdw== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; b=gfZaRTJ1VX8MDGScO2nDaTS87842zALi3pXUK+7aTEtSPRLB5CNthZ4SyJVEe0M0SDU5L/NqSW3syEncmmNGLdpP7HIhjLWwmia+/yK2hlNXmQIyN3VKUIcnuM/PnJfIhVxU2P9rzpAxKeW5Q2Ht/LtRSd59PFdGldwZggKaPELR62r54kzOZlX2Hrv7Q1Za2z0AFynS55MeJU0jPCVJui0g4PV5+WQhf4hws5kXjLyCxcsoj/ibiKMa/l8aMjw4gj2l7PaOD/TZroSo6MOGQH+gs5nnVa0e7gXa841BpSmH55Us7/WFKT1VssgqajqvMoE06vVqI49Psk2AvHuUsQ== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; b=YqJ9OJdbB6V0dRwuQzoPxXHMig10wKRxlDDxRV3k79GnkXyveeuZ+WUwKyFG/CNPtspNe//Hz6xHCsWVY5fTI5I9O0SGGAbXvuJPCToEVXwRngCzyfXuJ8uqaK4O/OtrBdRn5Y68SXGwWFl0imtINqydopfsHFuI5W46jWzJndjvMb1Mgup4E6GWhm+4au2Wnw/eFePwjbR7uDIbJmRcfj3+o6YgIgT8my2IYPANwhI/2QcFzOE7fUJJFwKltH2dkPL8tD9P8at82Atpqms0kTySyawrxfisncGPDng4ULfLUMctXhga2s2j4MKIgSudKO5YdhF9YVY2RtqKvDkULw== 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:49 +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:49 +0000 From: Yangtao Li To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 17/19] drm/rockchip: vop: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:53 +0800 Message-Id: <20230710032355.72914-17-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> 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: 7e345589-dd43-469f-8102-08db80f53771 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XaF0cTgydX/SxdovBwfb7iShSrsFD+YNm8NNRj5l2umwgO7fl85NSrzqTOF3R3TLSTl6SM3Uad2C06WpCfXCd0+wmEgqb1FLM+lYZhCFnB7BoAjXCxQ8ped2yOuj2ykMhGfPpjrtpq7avQkfCeMw0R3lFiKeQA7H2hIL0ltQQ7fohYra5uxSKCvhWVWoMMSuYhwIBMSBj5sGVZ6xcxpzEOYBw9xHKxV78cJor0uOyNkosnp/i8aunmh22Ive35yEQnJSsQuj7hw1lOC6tS1PjHMH3RrDc+85t0rO+KiRSFqf4bQJQ3p2rtub0CLSC7WLL0tbVFHSo/bCKF17iZWHFLYrXPs3DbMLt8SDiFNPoXvVlug7tWE0Wjy1UNYMsuFH5G6r/BoNSGAIuLt/qL9C/9mOdxNgPUmXpa4s+CZCZT1UEFNfTbnVBd8YpYK/afWx4nIAZLdkpHfhXojAoylROS6x4NYm6H+lDtD7CyjQMKyPy/fjATBA1Cq+N3eN0mCceKzRsP4LxX4sgR3GK0+0kmemQdVU7YOqVjdtC5w7hxoudpIi6wINpnvqJ14ZawvhdOqWcVObCyeALttBoUs96Kj2s5eILrIoNlyAintmjMB45K6TR+wAx7qTMUMjgcJj 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)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NgDvtuJlcVvgFZLaSGK13v1UG7/7HyED7wPWQYSy+4qQ2TP1yyzQ8PM5WB+QW6g+VQz7/NQYOoivqhhTs2l4DIZqU3m6/gJzSDYjqYe8c7ZmRzi2YtSdCA5PKmB2B1T340fljyIhEgroD0awWQYOoPxH4+n0u0WLbzjJadL1g3b/lAdnZN+zvi8uDIFid6CDKDNlfumWOCUZ3JUIz+9NO+5m92Ymu/jhOCgcWJqf4qwZ+nfELhczC80XBacIzArFnkoDLj1ktUHBAKHYpWbGNFrXARIHzPBLBP7+yKcRYEWFTSjoaKILz4n2weitqNCVgFT+QJKccTKqY2HQdIIt5pekKUVtGE31xTONM75PECm52ifUlLneP/+V2r5hQZD95ESF+Tb6lCbtHbbohBjtzoeReWxN6HGzCgRSBaM5tK9nrJeqO6540T2chUSLSTwK9gqjeKb2K0/Y1uHEs+Bf3Za51slkv26K43kr3MwZT1puJEnCTV3eUd/DuQfxtvuSaVa0eLYRn9WLK7zrdbVaH7SJqpMgtxjx8V1vloRoejmTzi8jhmviBq9ER1py2heACNH1Fhcd6M4atwSQsOxvskzAmQavoqVxtGTs3TfWSANAEOYAW45tSKz91wwpqnty3ZzETuJKGwTvHahoy9D1knJ5moIHj0BjXjBt55koD2fXTFaNjYWNAq+IVfMPCJSZ4QWJVaF8NNp7idHksdhEcDXkHKc5eqXOzNaExjvDgisY8mtC9imfD/ubvOcO/J0E+4NrR9yIYMrwIVsiOmeRTC72Bn53pbg4ZLzxlnv02PHaisJ4PAVqVIJqpZGlFFgT91dGEMgXFEogpXCOBQmp4u/zpdStT71NjV7zIBQlYbz9yWdUGiELbpHHZcZtQCGiutV7TtdDCPUNLlN3xgCHIlopnW/DEtzVB4QHOIaqEVLIEUjM30LTZ4FVQcG0T5kL98iZ0aqAF9ksRETTh8xJ3pfVi6HgHZxXPkhHlS9ewHJv9VyJgMLX7FieWRT1Gis18XMktMOkFMlN9MHsLOSvt4OzhcvgnrWFS+gJiC7LTrS5QiMFTcyIeunu9d0uJ9NWtp9dW4sRxBChCAWb5Jt8v8QaDu0Q0GO4w/CoM006CE46IHUIPvxgZ5BY0BOfZSD8DWDKEiLhnsz/7S47CfufzMES68B0lyvJnOn8P/2LwoOyOkSE83HDhEhEK87QDy1Fj9uqQwUGwCbnfv8iRTdM/O5MCsF3ErY+OYob/lHqePuybUz+ij0/G02W4YMMBWKc0PKC1Clenvbay7fFsB3+5BBhi+kThKwM1SuArl/xS7Pprn9BHDTTM0H1JfoG+UYlqn88kTfPl6guYcIi6tqFgSBpBV+NSY1/K2k3zSg7joGyN6rm2h6hXCGOzb+grdt0XWiNCWQhzY4o3uT2209LaXlN3rEU1OafC4NIq8xyfd7Od2b2K4Mk7dxz3ZclxueqbC2E3djFgaajuNara2nn9Rr1qoBfgJYUhFRzXKH5JrI5vmIYXjaNS18CqP9BU7qKiuR3kNXLE/p1zkIuSvDKg5UzrwWqFyOtLzLO8GePANvjrdtIElcPRB/fmNmKpNYI X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e345589-dd43-469f-8102-08db80f53771 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:49.0627 (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: FI8Q0KDacdkxzw9V49j7dWzGtjVjGbGP8brWZEq0SwztNw9Rj2zUMMnL97HlEjcUEBDVQF13uGJroolBuLM78g== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771004850058282028 X-GMAIL-MSGID: 1771004850058282028 Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index a530ecc4d207..e95d94ce1869 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -2179,8 +2179,7 @@ static int vop_bind(struct device *dev, struct device *master, void *data) vop_win_init(vop); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - vop->regs = devm_ioremap_resource(dev, res); + vop->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(vop->regs)) return PTR_ERR(vop->regs); vop->len = resource_size(res); From patchwork Mon Jul 10 03:23:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117586 Return-Path: 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 + 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 ); 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 ; 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 To: Alexey Brodkin , David Airlie , Daniel Vetter Cc: Yangtao Li , 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> 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+4PYp4u2ToihS3HLoz1XRD1JSRKYhpLZBYnqdpZU/W8poozaIVojUWDGTZJFxhs65dXNBl7spJVslaQ4L6ohbgdr4lqaLWAcmF0OwwKbbflLTUG+NgHuTLFch3TscAfS3zl98H9zsq9aN0qYUblzDkqtlc93AyXlLYql/bFDfjjWQ/xIo1DpkwrTDr+WJgTEEWiKI60cNDkFwXbKQS95O2yJAYEZnagYIaiZBFEehmsrk0jCjEJkQDt+DdEO9yfcTOn1ovpROlBrqzG8pPW4eFlPYHOIwpfVgoLvv7SEARqCyuGxCNmElnsrtumJMvsUIB0qm+vMHsG4TPG8CM3gBf+FFhFu4vBmhuzWr0ovUjAYD3LJaNpZVlKjSsdenr4PEdqvg8w7XT+MYpyVfflvZlvFKMl3Z28gWhYovxTVpYLUuHwZcIv/GvQlAon3q//VHm9WuojDsEiGPZGMMPl2aPEtlGLLyVYH8nfUnCCwxZPVTZTcmZMpfAU9E25tj8vbnhi3TxRPaOVsEeNENreUErPsPePINv7X543wEHNW4//qrN1lRyPx6uiUlE+gS6y4gajEfi9CL1qtjorv7ebWAoPdI6UMasrvJ2Jx3xrfDiFCDtRGLgd8ncE6OwHvc6gCPvsAw+dG42HnCzrRf//3nwKopsG86Bh/nxGI+aRCITXZHECe9T/JeTkoumKVlvvlJwt3JGeCkxw+iS5wP0zrydgYx60eIeVmP9S9nKypSgY399rKoZMt+Phl61rSsvfsu7d3FJbkCSH7MUlJGQpA4MkKmrsZxCXrzfoQ91F4Zzr19KZu4eizui+nX1+P0v9sKm+MjLCp96lAEdpMJtVOxZDU1k7HZR4iuoziUQv0zMzgAhyYMhSsFRV25UcKeAavewYE34a0u1vtSOuYXN69WDuM4NpyVA7xMueT/x3a92RJ8qop+mHDmc9h6VFA9GydzKKRvqO7rb91hXrFRJfyrpGog7HbGs2yocq9lDCztZ4TBlr8fe1PofV0GlmMnPCgrbss+xb7lTw9Wm6ibTWg3NSbITf1EGX/fc2VA975HpKvCHmouJJVq4PJh1hmKuNvzUY6zFhFlEQxeMWmC95sZ2Z4O6AJrA2i7yspnq3N+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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771005145814079262 X-GMAIL-MSGID: 1771005145814079262 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Alexey Brodkin --- 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); From patchwork Mon Jul 10 03:23:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117575 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4753531vqx; Sun, 9 Jul 2023 20:37:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuiYTYqD69j5mKF0pRjcxhFb3odDhawuS+n2pZVdlN2CyYrjbhDT0eX8Ry6hUfdy5oZ2Ig X-Received: by 2002:a17:902:cecf:b0:1b6:93e8:3ddb with SMTP id d15-20020a170902cecf00b001b693e83ddbmr10612107plg.6.1688960262021; Sun, 09 Jul 2023 20:37:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960262; cv=pass; d=google.com; s=arc-20160816; b=TWGUYpeBdV7DGKUbXqDe7uvp4ivSct2lB5Vr5JBTjqNxieM54kyVdtwxPKA70+QC/p JTh25WQPwHlLLCXWU1Kg4d4fdaKX6asjTbwpQPDzkJ8pOJPsE7h//Ac3cN7Rdmn2ylO+ 7tnXkq4TD504bSp3nGGOoBn+KiddSC2J7ia7ZItD+zMmLTu66HK7uABFkwEQ3nyyCNHh iVVz8kGU8SUG9R27QcTgIywtLTxErbBbgppkCcgMW9hM9+x0vOfug7McyLuWcDGHf1ry DyQGOAoYr79amX8R6roImUeliFbH6C2VXjO8mpSNfZX6pEZXLd+FO3H6ba4tE7AQwgp9 QEAw== 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=ZazujRFIZHo54+OFtlnunYyRbbabG6hDzqD6FinH4dLkcJbbOSOdu6IK6+rI3W7AW1 pQGtFrrd8dpQRPlxzr5WLsswHVml1jJyzNe5QnOPRfO6sTzotRof3CtL8oERANXKz1Or xzcO72I6KSaJY5KxZzFOUonM2OepLy5/I1Wc5IqJueCsSVwnfYnUbNBnTNOPaevVN6JK skwLGztNCgpl6LEWDRUDKY6Edt3bolVZ/edfgfvLuH9NNr+iD28Y6n4tM+2p0sUYWk8N FwJ2X3Ga9kgGebNBxqiq+T0hsPzq8eYUVJrOmqv5Ms+/vYfPtQvz/fb1171zwrBwYeKF YumA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=c36GYxW0; 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 y10-20020a170902b48a00b001b8aef27731si7819972plr.46.2023.07.09.20.37.29; Sun, 09 Jul 2023 20:37:41 -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=c36GYxW0; 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 S230049AbjGJD2l (ORCPT + 99 others); Sun, 9 Jul 2023 23:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjGJD2K (ORCPT ); Sun, 9 Jul 2023 23:28:10 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451E61BE8 for ; Sun, 9 Jul 2023 20:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IENu3w50yYqw6W2Ztqrk50cFhaVYqS9bTjWzhl3qSH2yH4bkbZqT9MxyFKfbRIbpTkCVIR3reC5/mJF0sfnnaoVSwl1LFBzTKbC7zc7ahnrjGORvAR7EQZSc8oK6oWSlSU/JJhcivgE95FNdvZ5ZA1ybkpyFkMF8BQzQOoDclOxY7GSOWD47g8fZ6wHbYJflPXbbqgfEoAE+QETDljqXrrOeCm3ygbbq0vy5MpFrdNj1TYR5aepO7I827cO+0QQGJ5G4GgrR6/8VjlH1vktrhzrU5UMxBvsvYq4heyEa1E6WOjJ11GDVTxSlno6p8IvYrjDYQxd7SebSZLLBzJwBBA== 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=DAojeakGq4Y0FdBo+oc64cMu1bQJOAsAcnmB6vHQmyN+rf2jDK1dGlnUK/Bbcjcq1pASaQjwF40VBz/XqNe3tAtx371zHQSWbv7XAQDEvt7/rumvasdpEgUersBFQ5wTbM7jdPmRkzP6pr9B+WH16s3hyim30VO5Za0x94DSall8iVlk0KEHXVp1LaisQ1OtkhRlv6NUVH8wNql0SyEa0yda1QkNcT/zwXFf26KllCTQQ/y7nysabd4I+bMFszMTRydMrlgO5WK9purOJp1Krec6EgslXfdi6Mj/NJ4kFFrkMLfoa3gOQ5racVSxoR47Dp9t5wvTVzBsFSVeloGl9Q== 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=c36GYxW00TdwAMvixgmUpBwJZ+w3Yu+cqtODesIAOTVW1dthe6MVPALogat+NI6wXUOvcuYMcQbMCo8jybwW/p5qYQ7WW4v9MfrZsGhn/iy8IFWzoTwACR9t1bAX6A8ORKAebieHtDNmuDx3O70/tgVJp7bF5cUh1xWDRExBi2piSWb17++fhpR7pUaEvXbHQNmOvtV8MYognA9+K7PGfK3PkFTVXPKG3gIocJ0tB1m1YDQppJXNFBPRNt0wmykq3QIErt2QhC9Do3HyRSdb4V9Lm0x4fwvJKR+R5FAJoF62kPHpjFeevjdHXIT4afer9zotX2ihT18/wpjwNPP8Gg== 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:53 +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:53 +0000 From: Yangtao Li To: Stefan Agner , Alison Wang , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 19/19] drm/fsl-dcu: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:55 +0800 Message-Id: <20230710032355.72914-19-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> 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: 3868ecb4-c47f-4e0b-4398-08db80f539fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CHCdqZQHvWZk/vvJNLsJtR7SL2o9BaHp1Zl5ARjL3b8oVDQTZLhneL5yJxBjF4coC7kIkKVEdet0Z3Ur1x969iape2lyF3HLD3MPh6JfjRuqZGVOnSrZD38WeGlOBsskAqD4JNoikCn9+SR0FqggrQkG/D+20PHn4n6UrDLpIRETppqxqGFFt36Aohhmzu0J9p88t5rbqLFLrgZoaK379g9BXhvvi/yl7S2n2Otf7gMp3Rt+7E3TWts1HXCMIV0Pg0gYq0cBQlZjXTNk9LMBORGkUj36jFtIUKaqd5aYxDBOQ+gWVBWNZaAzHJuj5iQMrUk6ORHvLehnKSiF0KjaxND2krIc5LiL2qhL1D5tA3FY03GIcyLvaSTiHn0MJIOiYT8lLiCbWPdfh5RPbJqPcWRxMQGTs6cPNGhJOJ21W5LKN7wXspSr4aYlEPTaNQExXMP/nSi5KcGIidhvszXD4Bxm3JW5bSZdBfsrgp6U+Kmi0L6MjQqTO1b1/s3cgp0EZqmk/whZeQTwN1ubfPFe+nO8aWpRM0i4qSvqer3iNCIU+IATKK2Im43h81sTMEoQpSwaWzptFE7wbesr3u3LKhbJLbac75kneeLJfuP2SdHBpMhN3rvEfzvHlnYwYypY 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: aY6Tg7x0MZpdn+pOr9Hk4/aFxMA2qs0ivPDhAo7HfmctWlxmu7J6VbsVWTU9a/Lz5UXl3jf5N6W+aeQ6Z7b0Z0gwzXPrMq8BE/AtT1JKeeXsNE3B9ToWN8dj4nHIxKhZT77t1AfRR45sxVa+ztXkypG34tMri5uyle2lqM8xbJaAP6xZNRLv7YD0ljIg7KJOSvv0JTzQFHmve2uCg3FqeTAuFXx/gsV0fIOGWeyd7RCNc490rs3TAKERyYUkjhXsTa83dsUruUzv3a4+Udk9JQ9BG4ykZ26mvaIDhfDFJ6FeanKYhj9zi0S/81AwSU/73/vykxkjWtChxelK62MF0QuKIeWE1VBL7cj5AGK7Cfrp9W3T4VFxBizOXuDV3QpcP+v4h+dRg1i2BOUbfkwBSelqUEIi4jwKYl8ZVQWBr4TWNUa1Mcz8rtJR0WzssEP9v7L8quJ1Zvd7S0Mk9qKB72R+xvhQuqx2lNiWFqH/mC3FoUChF+/PouXfgVJAV+230SzGT0V50CnlJ6J5q4A4bShw5ps0Zks2mn4gH/jcxI6pXJ0uT3KoJss2v8JNllpb76Fj3iFd95ZxGiI+mmMDyr8Inqq8SYw9VP6X6N2ckAUnmsUmydDk3CyonliucnSg8VVE1VUx9xtfhh+ur0B/hmno3PIHPPBrc28B/eZlSKfNc8fa9pEChz2GbEO/CZ6GuxOTZu/eihKfhl6n2fgFPnbf2hVN4/CikAO60FuM73VYvx6qyRfG2TlPAR6IPULtQhh0OJyODoCyr+EDOwiaeFpnXAj4g8ezgoKH+/JvO02zf/yV9qvlBQTn7C+CFW2Dz/q7Rmj/0QmMjMK7pws5C8qEsGjZ2rAq+eyLUUq/wEhe1lA0HzqmJKchuAh2RCI9MD8i9VShSqzJh2xOzHR21fzS2J2vpFESXDMr9qOjym/KLh8yj3qNx/gKioMvaL+qC9mywJCyGTdANzWlUf/R5cLiJV274lL4nGh1S3qEDJ0Z3xmUZIkpvm4NMwUDeFw8p7RFUlY9VaModLuR0ZMSlHc/CAgGSngOsp2q/arrmY1Ow94Ogdl2LQItOvFmyQg3rEeu29Zeq8og3/hTsCE6f2w4bxKz4FTwUgxmNKCD94TbC7sCGKlvwfVVZm65+0wEKw2aYnxrhJNTl8ngO+IY9SJSLVwPTnSW/hLvb7RxB9frAZhyGnlzK4+LVeXk4Jb5Z6mDwE/mgp9TkSLaU+uzVKXvSr32sV65GYrZnOxEMntA4tLeBJYY+aX6QyGLKxTIBEb91nJeSBpEm/YJIun+vcCQYWBgQ8a0jZY0RGJY+AJ2Ang1/oj9qUKqWXJNO3bubvjgJOrSe4lFQtPBygp+ukPp3GKkRId+L0UY1OmJiTE/j7LLQsh5PcJd7xA++dRUU0cpe4jrr0dvxVF5pBkWyAOi1h1YXOvosV7ksJaRG7P/qzyiP6PoKyB6WqnGwdNwF0sh9MpowRwqdJL8JzITQqGdbpz4QZu0iB664f47EGOMivB8xVYhy5MapDI7AQnWiv5n9+17DuYyuoCd+ow5a5BTEATuqZH/DryGUyuhrsGsNDYHPjTYS8ufjhLlr6kO X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3868ecb4-c47f-4e0b-4398-08db80f539fc 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:53.3353 (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: iESXSuJ5tH9zTJ28KL6CvvKAsZht5oBzQSSZ5CXcMi/bUlKfcwJ6N6crtX3fqpnkKVYThrW5DZxXGjvUYF+6eg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003195537260146 X-GMAIL-MSGID: 1771003195537260146 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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;