Message ID | 20230710032355.72914-7-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id 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 <rfc822;ybw1215001957@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <frank.li@vivo.com> To: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: 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/AFVu78ksZYpv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d+/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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002557207464108 X-GMAIL-MSGID: 1771002557207464108 |
Series |
[v2,01/19] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 3:23 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> --- 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;