Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31557893rwd; Fri, 7 Jul 2023 00:45:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGKURbIqGOa6PMwCDhzrXMHn5owd98QbfKY6Uv+nnROnksAgD8S/4Zg0C5wrtvYPgreENhj X-Received: by 2002:a17:903:1107:b0:1b8:560a:aa16 with SMTP id n7-20020a170903110700b001b8560aaa16mr5206086plh.10.1688715931657; Fri, 07 Jul 2023 00:45:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715931; cv=pass; d=google.com; s=arc-20160816; b=w0wLQNBa8sXuL+odTCOdaBugImmaaCvRvH83KdQpaGScSGaoHiPLuU3Vv9VUMzt2eJ nSf9AT9HpsijWbMu1t14b30Kc9ki8nneB/j+fkAzrKqTeJf4P7pOviR6uv9iY5k16dnn NtukGVtG1zMxB0DvZiJ5LtQ/e2hZTmoY3A4ZPLBQZYBTAisTnyzuYtrSU/6Qy8bMHvLY punjMIiNThJPcpPyfdV58mbK7kZXYFJFW2cgNJPhQb5QqSnLzjwFyHN79J5mOlAfYI/J yD3Q4eK0q1nFjOraUQHwR0/DIM9Tmw2hpmVHC5UrQXH90Lgb9RYqd2tZHI4QNntDFmzT 9x4A== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=CJZh663SD8OXTvtsQtClk3uq0kHGc06ddp6+difmsy+YAJBN6NFDoOhcx5hVEmqgaD jU4pqjljuXDTKOXMikHrlM7GgWWbpsAvG8qJzl1JOM61g+HL+z7RzIkGi8cjcAK6b8Yn 5GT1rrPE/CIULLK0V/4yCD5ODld8XLf2DA4kJOwRK/5/AId/A3XcgBm8L11/dvuovzu7 clSwNFFfIMQr6lbUmmI6em2Yh24RyMEES8FhbaXryh424Kwd3jkMCsQrzsrX68Sh7eoT ZRUpl4Uyup237hMSMK4Q5yod436834NC1fOoZHicijIzO+FSQMFNbzILBvdkfNI4vY6T QnHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Vz06y4G1; 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 a19-20020a1709027d9300b001b811261289si2988310plm.482.2023.07.07.00.45.19; Fri, 07 Jul 2023 00:45: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=Vz06y4G1; 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 S232308AbjGGHVK (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbjGGHVC (ORCPT ); Fri, 7 Jul 2023 03:21:02 -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 919261FDD for ; Fri, 7 Jul 2023 00:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JmYFM4TvC2yeF6JsbEKlov8N0v7mBfr57sFXOrsUr0HAGgGwAHVTiON7dE6N0EywmD+A0ndpQdJDxqKxMNgesPFzZNIxL59bypwD7w0lI8hM0DVOcMVqbiGpeiSt5I3JMiMKdbNRFBaMePU6hs7sulv9iiW9V8HRB1uMshjQDg4TpOkjQHiG+6mvMO3cebHvmCCWPMMwOOHexSagsuXU/k/b478A5OO1Ad7ZRuE+17pPdskQ9KFL++lNyJWX7sSTTFDy6etPvIx/A4Xgf8PuDQIr3A/Y7C1I2aVV3+cvKtyOj3pWNB0vPL00UbHTIyOjImPtQE3omAsMUjftwLlp9Q== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; b=oOxbiD43mqwE695h/lIwUHsupdfZzWj5d2f1VbSDFrbq5rvs19AMmrroKzHFLBtNNfdvM0HXpMnppi254P73o/yDo0NXB6ka/CrujWKklbBRjICCBVKLDexoh4U5C7KDCPoSZeAienNTBYG0wpsJRlFbeErWA9J5fAAMZkvNJn2yUcoWFofQdVj1P4ujz5xvVxZKwq4uWXvQQ9WTZrP+CXcJbMPU4oS9Q9TtsNIZwugCuiqV6xzHL3Hrbo4+w/KPNkMwZ4xXO7RDwF8rNalhRAVhixCuJl2KKAAiz0aBAQNsB+a0lQQokswFMGs9Cbi/CQOrG6ZAaNJx6AwgLznDXw== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; b=Vz06y4G1zIzWBMX2MUcIOR/LE/N7uW5t/LMNN7Qqm1pkm4kvtxeAhtvYIdUYDNhu6+23IMIVu4sDjJm8GfGDjOTwgg65V5hNYXFIJ4FSFDKomFc4f1WRcqNkCFjXB93STY3gaiOXqrYS6M+u7uiZolLLXCQ+kEZUKt44+8K/SsTWaOoTpljvdF32507eBAs2aACQX7y/Djo+tYl/jC7OT7nnY6jtnmlVr8NEin1B7kQzVP/Hykdfq1XQveH1R+Szr43RZ0NWoLcVNS0oSJtxm2chxDUOl3ZRFDvGzQBE7dOyUkHGg9wP+yqOv/qqzopJOYNNnBQL81VNAWcZtUds1g== 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:56 +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:56 +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 06/18] drm: bridge: dw_hdmi: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:22 +0800 Message-Id: <20230707072034.48977-6-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: 68c9d2dc-dfbd-4f99-a769-08db7ebab4df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YwzLE0puxQLDXCZCfu8qT/BnY1r+atOnfBQQY1VSNUDJJjsbG+nmxxBIela4x4X25cO49mCwzBT9yMxk794BZiswh8TdBh8A0LKNwWriWs7DmeR0lzirFVjmmafjtuqyzZ+YHcxHqZBV9o8Wvc5OBNYcYr7kTQceoyvOKtC3ntUBNrBrxISVRz+L1Z0Z8fgfxVTsBqdpnWk6/Tp/y26z1gLIPOmQo519UV3nXI7JjIOk5KlS0+CWkidCc+d9/PTtTQI35ykIPcI3M/Y5alZf398v3nUIAMaNuiMpaYrt3qE0fET/oqDmJPJq4yhs5tld3g6oKvI1nwQQq56oiD1Ed/5JJSX0rJ3Dt7UDk12fkgdHuJUdty1cuaE6WtgBD6iTbfrtxGeJqN9EoDzXJ7maroAS0V9JS8gZdWySZk4biaKNDGOpagXiN6O1OJFsHkkEDLSWtxtqAOb32qFOo0Dn3il8CpX8859jX8E0tR2Zvlq/fqNyetR4Miav+MkLiQ/UpEfsJxnjbQMFKT2YNJeqbEdpDzDvpunvf7zSNF3ALGD4Fs16tcyPfj3WBkAEKw9TGmahAUCk/5spwU5qr7ZGZ1M9yPBwkFbXzhLj0w2swl6uGeEkk1/Geukgbm27MmFB 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)(4744005)(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?zY3Sev/XKjP8k1uKtBbMVCLvheebh7KmyFpHZSMlCUDY3/GjsIMZEk+GJ/EW?= =?us-ascii?Q?6NFuSsbMEjJ/RS/K/6CAISTa2gU8CnzzWFI7ErgwPbqxprMrIpZMTpN5NwBa?= =?us-ascii?Q?dLJfPc4n/imFRujezzFel2Bn8eiDlTVED/cltKx4IOLN15WglGl+lNGTApCN?= =?us-ascii?Q?eCcJiMNkfKjBI5qkm2Ak4BeGED1hGdF43S+lD/cFticChghle3j83IBXBJpN?= =?us-ascii?Q?jF6ciuRXvvgTFc8z4E+5PFXR798t8ZYFhi9Zu9YV7sIvPYf611NozzSvi7dY?= =?us-ascii?Q?sXFmCaXtwAdX1RRT37+M6GXFAEqWVf0xJTKEHDUutUCSuMvM95cvG3v5TUO9?= =?us-ascii?Q?hyXdQskcLVha4OoWA+JaAYufX6Ronw3p6SOymDeff73qaSJqI6uVO6Xo6XQX?= =?us-ascii?Q?5DsYIpBSgjY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SOjySl4HDUeg?= =?us-ascii?Q?XPk8PtJsMnRSXBvE1PiLKk6jbSNHQYL4egVPnGVuqFX+LKGw2JOaXyYptgOv?= =?us-ascii?Q?fbId7pnUhdkJYt81SdHo/v2ftN78iNdD+nISbSxMLDNvhfjH6acdsFPlWrwK?= =?us-ascii?Q?Q/YNXBs8jYunwGyOHj4gE01vh4oYzkrJr2SjQv3q8Y7KFnXefhC+NdC1oDgx?= =?us-ascii?Q?VYOLmc5fbJIjeqG0UutuzIX673/J01tb+O/1cn9S2SCRYhXwdsA2DdIVwi7j?= =?us-ascii?Q?ZkRJOEb+NokmZLkMBTTQhJD8hFOEj2PylGZZRCg/?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68c9d2dc-dfbd-4f99-a769-08db7ebab4df 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:56.8316 (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: M4g7esAEJA0YAjeBgkhLzsSaPHzfBJaD6xCAuDWx0QijaavYVC30yqneab9TmdDmy31fmXZz83zaYo55eR5TZA== 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 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/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; -- 2.39.0