Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31542391rwd; Fri, 7 Jul 2023 00:27:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfnp4hTdd4uUwI2Sqj0GVeCRG6eOcsZ+kvG1fQmvBTagbf2nTA2DmSfeCcQE9Ig3XbY632 X-Received: by 2002:a0d:fe02:0:b0:571:bd3e:73ca with SMTP id o2-20020a0dfe02000000b00571bd3e73camr4505248ywf.16.1688714850261; Fri, 07 Jul 2023 00:27:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714850; cv=pass; d=google.com; s=arc-20160816; b=tUNDqylzrQlpBS5O548Z1h55Zr/WncYLocJb7m3hagZabekXfTmHf8p5tqKfrLLYPP V6JiMsXBzHa8KqABSj5Y/VGsYpgZjMPS7xN2E04Hl9iRr9PGjB26zlCHf2fjkmaMEBme GhZWTP12PwrT61aUQ0zKfYnIXkmS4KkvUaVUCtPGGb520weDbrnXL57SeNPydtxlhCL4 Xi4kwOcczmvlCr+lZXTMnuyTex14LuDdg+jb9THHZxud7zMSJZNhKLwgum7sokZ72+6n 5gUMwW5G/ZC6MnfY8uOeoeym3WvxdiZo8H2m8nPhC85VE4AKxsyvCEVRT1l4/OdvR0wf drQg== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=Xt6pOBJr76m8b2+tcn8y9cD0z19IRPRvIG67rMaVyao+EUyvOpbF9StOwi6ywkWmPD bPm1e+OQh8TEDuLOnQjZhT1NSPnoAUR1bKnk3FHrHjqFoj4HNPfk/3jxUtrfP78pOjtp DQBtloj/8c9d7ed2wEXiblqyT5ZkB0zGCpeJVvnme/n19HzsWmxSM6u19u/bchLyZ9zO tQwYlRoTRX6gegh9FV6wVFqqtW7UzXZzoFoMzNzYRptC9ay3SjTJfRo80fGgUbC0O+P1 eerUH8ujUQyS9+acmMOCc3autChpAAb3nT2GWTIV5cXA/O3eDRIWrVNGUtp8mZMIhi7G CX+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="QjBW5/X2"; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs127-20020a632885000000b005439273f2a4si3325204pgb.139.2023.07.07.00.27.16; Fri, 07 Jul 2023 00:27:30 -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="QjBW5/X2"; 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 S230036AbjGGHVT (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbjGGHVQ (ORCPT ); Fri, 7 Jul 2023 03:21:16 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07CA31FFB for ; Fri, 7 Jul 2023 00:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=arfFBUQiWe5vc22M7GVVioJLdjg2wXMIGsIsfLABqpolge2FwzCpTSM8fpRy9Cw84214kGM9E+5HU7efk42/91SBLvFsad19Efpm64ntQlwyiUUHr87MYv6ulyQRPpNAsNzqmoJGUWDVkjpRlDW3KIF/5zZ4LRpe3Xw+Ku8UGVlmnB2xOvYawa0+9JNwAS6lBtvKlv0MB0qC+U5ekdbenxDDqy4G8j8aZ3uzsK+1xURakykC3W59rS99iIyBY7TCRgQtphtZ4STmDYmKQCHNVBIMSHZNk1D81XAGrM6cXhlRIFaUzem4XpvaSCFNL0cMRabfLrsEGPzcMH7mJZjP8g== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; b=imvQlgYi/Js1gyuEOTQhShR2ZKz9AEDwTYPN3l4aOuCBdn70BxGuRF+sZwfwT0vUYz+cm/o3NBVL+O8krAmh1H1V9LgxC6kkcHHSauxJRgIOQgeyPmHbuefC5ieUnu16GHdhnL2+Kt7ZyR4qeiyEgjooDRRlnHA/3OUKxSVx1AGjG5QgU6RJwFCuySuHw225LLBn57PpGozIHDpnnTmFeoRQGl1HTVDGzr9v9iT4HOSBhaS+W9nd4CywrDzTxA9QJmwR9PLucbQbl2MWOrwrcD0Z4DP/neXnSBXhgB2leunGy37fz1sXPX71unMXBX/ohHxJ9aMVIzxDgPh8Vj367Q== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; b=QjBW5/X2BzhUzbNXo20u433a3RCscThsUYPILq6u3ZFy+XMWB061HbWtTncccRpZIC2ZK9IthZZ181zC/wIkSddD8Pttm3KH9xP3jYj+tLWIHhD27yOzmvL7xNbWVGwB5954z5x8I6eVvmaOOYC3kh1UJw31CqkIUgAPMEQjNZOxTqjxIbQ9OI2FgK3MgSbR/uc+z9M/7pTh+Li5kSjpk9W9as8SIOgNMNwlO+C+e8PzSwa3SHXMth/CixETRC3xwOImbNHv1vrqj9o+/G+mFRjyDFgR1fePHeiXXC8HuRfzAa7e1N0svK+GJDKL//R9BWeYhtO20SmFdsNHeImVeQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB5342.apcprd06.prod.outlook.com (2603:1096:101:7e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 07:20:59 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 07:20:59 +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 07/18] drm/bridge: analogix_dp: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:23 +0800 Message-Id: <20230707072034.48977-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707072034.48977-1-frank.li@vivo.com> References: <20230707072034.48977-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5342:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dc5ed5c-1f05-4832-d46b-08db7ebab642 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VcQWoWkb6SnDlVpvrzyps41LaeILxuGptiIDQtMdjl2PHbzqyyJ1h/KL0OzpNqeE0OCe6aR4T7wLaTYA4ccB5ak4Yhx0gTEnUql+3Ei/v95pOx1KhKC7NJ0ViENPP4REc4VxFJHJpE34xca2O4lsVOMgI+ob2YSeExGAqXf9wPelIy42DDiuMh9ojFgFx34maQFblCFVsD4Bw6wTc5MAx5FVDXqLEknbzXfzfcFxqZbmyr6I+NffpBnr79uiD0daimeSsQnGz2150upHLXqXi1sHwHrUIWzZBs/STu5unt1673WIjlirt+hS3AHuvEwu9Ear/5eKaZ8AmWHqJkW3bY0935WBR681GlhBDbalBsXciakfkdqQkwYGd65WQzRf002xk8h6dwMAA81hQT1Qqg0kJdUYMBTMfH7So9XC2OhibeS5yVPaL5DLi6gx7YfO3g4Z9R72enDt1Jj2gY4BFbU1ZxejjiYK48RQMKCd+n7zKVmvdDNEdgMlthdibb4rbczPOyKJuiylxruo045H20cEEhqZGU7Rn6Fq2AXRT8adhLAa1LvEoUmGAk2kLjvv1FHmcE1ZDpuADAWn0dSiMFqe27buCat3OdJogXxo8Q8+QheOMQdpwB0XkPNXO6L3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(366004)(136003)(396003)(346002)(451199021)(41300700001)(5660300002)(110136005)(6486002)(7416002)(316002)(2906002)(8676002)(8936002)(66476007)(66556008)(66946007)(36756003)(6512007)(478600001)(38350700002)(186003)(86362001)(2616005)(38100700002)(4326008)(83380400001)(6506007)(1076003)(26005)(52116002)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?A0Rpm3BaHmKcInRz5SRED0rep3S7p0t26T4MsLED73SmZbTrJENWG95Wg4rZ?= =?us-ascii?Q?d2YD6vWohYh2fnAkvsIZy+Mx8x04J3vj/UiBjytL2reUnNDPXE/BE8lJK7ov?= =?us-ascii?Q?xUUMd0+BynsZt37LxK65qbFJFlOUIJkTOLghqhIKGqSdbJPRGSDnosXngznJ?= =?us-ascii?Q?36YM1on9PKDmtNRnyQsmSNAbFD1cJ0nu/5SkvjzgmM2KD/gtWYBiqxfPatNa?= =?us-ascii?Q?MbikEb8r2MpBQidbdc1diBWaYpzDOSMW5ck4ejQgKHZdaPcIV5WaEwSnR6Wm?= =?us-ascii?Q?Y3YCpht8v+T6htEsVT7EuhXAqfG7XzigZO5YdPAFEcGZ951YRS59hZ7H/D2k?= =?us-ascii?Q?3xpZYVkSk1s4L/v9T3fGNNoAt/88kb8tmGNAzYARWkEoilI0U9rMe0talfVj?= =?us-ascii?Q?di7nTy3SEjfJhf2BMrhgZmSaKuGGsnDkKSvhbxBIWF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+mpY+GYOZeaTjaG3Un3qmq7Uk1Dner4szguYd6LH0MK/?= =?us-ascii?Q?Jn4LicCrF6XnfxchWodYSMW9JjYNyxOes5WNsILE6T5tomy34wlCpG9jO/QI?= =?us-ascii?Q?nOFWp5Nbm2mclbi16xSKIyxuT9gVyVjJezR/w6e6nw32gr0MtMkWbQObhqXy?= =?us-ascii?Q?dmaBRBMh0Xm//g8R/YYXrvZRJ5Bz4+KIFA3B7O/qc+cORycbqqavB3qGO+jH?= =?us-ascii?Q?1UYWf/EOjHNwMYpBUxOVtA2b28Nq95FhcM4Ni0Fs?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dc5ed5c-1f05-4832-d46b-08db7ebab642 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 07:20:59.2086 (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: UszVXvr6Kebk5JE39/Ku5IqqXL1/u6LjTAgcbXyEz6BgdKf3n6XhOHbGUUnunoBCC+HYMr13Axesyb+y7l3smQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5342 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/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; -- 2.39.0