From patchwork Fri Jul 7 07:20:22 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: 117013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3083732vqx; Fri, 7 Jul 2023 00:27:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGo6kgFq30oQbiWfPIB3ajyHDxhjRDZTZ3zo2/GDRnTg8BYgPm3AAS+hw9Ycjl6/COyK+Cj X-Received: by 2002:a17:902:d4ce:b0:1b8:7e53:70f with SMTP id o14-20020a170902d4ce00b001b87e53070fmr5280593plg.27.1688714851961; Fri, 07 Jul 2023 00:27:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714851; cv=pass; d=google.com; s=arc-20160816; b=CJti+pc6y6QWf/ET/9Y/uu2c7qlNbgyQyIVzoifs6vHD/OHljrUvz6rNWzIfyxUMIT hdZTfD7/VxLa1ciYF47blyT/3+DJc8n9GaupE1D7dx50onLKN1RDYqn/fyYOlLBK1VrR saolbJk+/PGErihjENIiwmIyYsKU2a5YQXWMXck0FaWYtNDdgY2mq2E/ha9fJ7R8Sk9Q m8aJi0eUdLQNt0Txb1dBNwNldJ5TaZMLSTL071mAQD52FCJ79s39BONeTm/SIoxViAzD 8Yo132OTNm3AyUyf2YpruunjpBPiFy0YyitAeExTJ3cM/O7jaCeynEw09KliSVKeMz4r FZUQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku6-20020a170903288600b001b8a7521b5csi2944880plb.244.2023.07.07.00.27.16; Fri, 07 Jul 2023 00:27: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 S232319AbjGGHVK (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> 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: zY3Sev/XKjP8k1uKtBbMVCLvheebh7KmyFpHZSMlCUDY3/GjsIMZEk+GJ/EW6NFuSsbMEjJ/RS/K/6CAISTa2gU8CnzzWFI7ErgwPbqxprMrIpZMTpN5NwBadLJfPc4n/imFRujezzFel2Bn8eiDlTVED/cltKx4IOLN15WglGl+lNGTApCNeCcJiMNkfKjBI5qkm2Ak4BeGED1hGdF43S+lD/cFticChghle3j83IBXBJpNjF6ciuRXvvgTFc8z4E+5PFXR798t8ZYFhi9Zu9YV7sIvPYf611NozzSvi7dYsXFmCaXtwAdX1RRT37+M6GXFAEqWVf0xJTKEHDUutUCSuMvM95cvG3v5TUO9hyXdQskcLVha4OoWA+JaAYufX6Ronw3p6SOymDeff73qaSJqI6uVO6Xo6X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hC+NdC1oDgxVYOLmc5fbJIjeqG0UutuzIX673/J01tb+O/1cn9S2SCRYhXwdsA2DdIVwi7jZkRJOEb+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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745864634109980?= X-GMAIL-MSGID: =?utf-8?q?1770745864634109980?= 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;