From patchwork Fri Jul 7 07:20:23 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: 117010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3082345vqx; Fri, 7 Jul 2023 00:23:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4lA4NEN7Ie9HZFwQCZk/2jD8trwF/2jfZS+IUbtMP0bv/6CtR7g0iOLHb99i8y60EDs3U X-Received: by 2002:a9d:6546:0:b0:6b7:4af2:492d with SMTP id q6-20020a9d6546000000b006b74af2492dmr3849777otl.38.1688714619996; Fri, 07 Jul 2023 00:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714619; cv=pass; d=google.com; s=arc-20160816; b=ybcBjEUoqV5oLsAEOBNHY+WslqL/+Fbo1fdyz4srKnuF5IZBlRjmU+SqLGdaeMuFZS ORF3SObbZ8/e6uVw2iHPHJqqg5PVtkzTb+zl4rEB3DVou2JA4LIdlZVENgzpcrRWg1z+ 10Wrv6h5SOiNVByFJpgrMEaQuyJ2Q8nwEBbmL7IGOSb2gaAIURzZ6hJKA2rgzN6bBThG waJKZEmLYkFmydFMZPe0wmoLb8hI84F4iSjRPAZ9by0UnAFNFwDxusCPBXKAwQBGm2BS jW4nO3Ix0OsHpForIVKHqzrS630A1kuxR0Hxlis/5zHYoYPrHf+ZsucVvzAm8BFKrL5q srUA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h192-20020a636cc9000000b0053f265b0ef2si3006268pgc.471.2023.07.07.00.23.27; Fri, 07 Jul 2023 00:23:39 -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 S232055AbjGGHVT (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> 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: A0Rpm3BaHmKcInRz5SRED0rep3S7p0t26T4MsLED73SmZbTrJENWG95Wg4rZd2YD6vWohYh2fnAkvsIZy+Mx8x04J3vj/UiBjytL2reUnNDPXE/BE8lJK7ovxUUMd0+BynsZt37LxK65qbFJFlOUIJkTOLghqhIKGqSdbJPRGSDnosXngznJ36YM1on9PKDmtNRnyQsmSNAbFD1cJ0nu/5SkvjzgmM2KD/gtWYBiqxfPatNaMbikEb8r2MpBQidbdc1diBWaYpzDOSMW5ck4ejQgKHZdaPcIV5WaEwSnR6WmY3YCpht8v+T6htEsVT7EuhXAqfG7XzigZO5YdPAFEcGZ951YRS59hZ7H/D2k3xpZYVkSk1s4L/v9T3fGNNoAt/88kb8tmGNAzYARWkEoilI0U9rMe0talfVjdi7nTy3SEjfJhf2BMrhgZm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4+KIFA3B7O/qc+cORycbqqavB3qGO+jH1UYWf/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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745621774083200?= X-GMAIL-MSGID: =?utf-8?q?1770745621774083200?= 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;