Message ID | 20230710032355.72914-5-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 v5csp4752249vqx; Sun, 9 Jul 2023 20:33:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6NsPtN4iKvYthPARpMCrSYZ3Kgvo84dH2MYO3cjbIWp2cHdcsN7uj1NnFJq17ozwclLr9 X-Received: by 2002:a17:907:c9aa:b0:986:d833:3cf9 with SMTP id uj42-20020a170907c9aa00b00986d8333cf9mr10367218ejc.39.1688960033735; Sun, 09 Jul 2023 20:33:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960033; cv=pass; d=google.com; s=arc-20160816; b=jU4/u16WQMqs038NyCP1oo5UaBvkA/jhyAGtZvJnDm+eEneUbmWd4cbudYhCEGe5NM WPeRwqw0nJ8m+fvzi3vlZXTLCv7JDLx2b/mZr0kHUHjkJtAMFVdaEs1vnoVtXYGlcKc1 +PRi7Ve+XrgcqCZVx9kwmqH7BHsYz2fn7Kl/wjkWMxCZ453IgkUda42BBuQarT99C9De +PB7OHo6nW1A1/f1XFEnfY0g6EQ3gbVQSZ0JRebDsM+UcNxsf7fEJUWh/DQ1cFxfsTRg +ks1JWdM3fIs6+QAsXLUff3vWyNqROKNeyLfN/UyhVrJgnjp+vfROsxFzoXnsa0yu7MM QbpQ== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=IIyGVpsG4wE00YHiHb/9PyQr7/Eps6vabHe6nk6arZ9p+8P21ivP4a1Kp7zTedvHzv ngzNfqXIDFZqkdDMvbmycGB0fIvPrRQZq5aD6XEDJ/XDnyFvdmv1Ev2ETpSKv5B2o0yx cD2XbDR6pXH8nZRzxMZJcOu2fwnbWAKzhtgb0Wp5jC9g5L7iaYxPuv+g2QphXSuh9KBO NLxjKZjjrQutkaBnKPEhFV4HFT20IynJ/YtT+DIB4fzfgvLUbCo4UyK/ZcKT9AOf3i1Q bcNI+ysopDpQUTiL0sx4R0+gYiuQefSusXtsjjT4Ta6Il3SdBU1fjOw8Cx+vMGMu30qS AKXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mwFbgMTj; 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 f5-20020a170906824500b0099364d9f0edsi7559005ejx.402.2023.07.09.20.33.30; Sun, 09 Jul 2023 20:33:53 -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=mwFbgMTj; 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 S230120AbjGJDYh (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjGJDYY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:24:24 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2091.outbound.protection.outlook.com [40.107.117.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D588AB; Sun, 9 Jul 2023 20:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HoMU1eS363rGzlSlxG/nY0Tce946hFbBFYM54FHL6NRZbDHp5b1bjI6DKLafN4VG9txYUsZ9j7Gzg0Ufda1agApsqueK4brXKKFAODLdTaTyBkqjfrWNzxm4mhmHdvyA1IjPiJH5Fj7RcsIGCYoFR8db0bNgxAePn3z36RyJPbMKK8w7FdobpML/2xdm5g7CPaaL5qOMcOX8KXmmSpbbYjZGy9l4acLL/WLBjxwZdEEdBLzNoguliwEUjEIi1kvYAKyMx92saflTIFLEhkblOaWms9MilSWNdUqllqANiqY5InrGEneiVZNqhkYxStz24Y/irSwhTbYIXJocvQbo1Q== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=AzPmEG3EZuOfggJpGYEci4rIsHDENH0DQSTCNILuB0jSktPdM3Gdxq/Da449ApklMl2qTrYcFcyyl4wpQvcDDTi8NRB/r/qwp09fwrNOstmkQ/D8YA636cewM11juovlZjdPXNFPkPM2Yfbx8+n1PGnjvoHvLyJ6wPIn1OLYmL/yxzorp9fswS38Gt2Y3mNH/pSnV8eMHm6PDJ/LwjETJeIt1kb+PNCnCQvpCoFwgeI9C3eh9UXspj3WZmO1PKL8KdAV6YjbgU/InmOio22yVUK9XskjAKnkyIJJjNHzkFJ8mhZEhUqzZ9sdzr3n/p87zfHct3m8vJvzTiLrg6pU5A== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=mwFbgMTjrxDJXoebI9FYpJL727HSqlL3Nfaaf0AZk4NnP5hXTt5d3FkwwjN9T0aliCOXCj7IEPYh/wjL51/YwM36ONesdQsAI2pfa9G1diFWZwAhl14ssXwL2DwnYTFdODg9HbQV0P3WbcHeODBZHkuGgbU6lFg0abVudIfMep3SmAapSdT8QXD5EcT9SW+SEIA3QiBqaJ9+GAZ2NDxYSAPfFEOjeFXlW6sIVQ47z0BYAt9xt2pedg1Hoa2syQ/BUQou2GN4x6pEARxN/rpfJFaYbz9SpCbFS1kgq0V0ajHonBuOtqb3DHo/ARtbSqjN4L9i/PItduD33Zz+7aORvg== 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:19 +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:19 +0000 From: Yangtao Li <frank.li@vivo.com> To: Thierry Reding <thierry.reding@gmail.com>, Mikko Perttunen <mperttunen@nvidia.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Jonathan Hunter <jonathanh@nvidia.com> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/19] drm/tegra: hdmi: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:41 +0800 Message-Id: <20230710032355.72914-5-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: 079491d3-1f8f-44c2-4ffb-08db80f525eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4H0WPUrEY8T14llq9Wx7v+otZ7snWgu8NeHjCEk3noFn/eBOnqJqjHY0m/moJdDk9tPSetrgl6pta64PghynXezmFptk9hJHp3OFI98r+JiKYP/czvp7JaX1aN6hOWcqiZ2H/zYaN1ykn183TGN7Lzl36YnnyGrTJcGib5uR0CAOfL7LhCuCwZi7e8O+vHn77e42b6r0BOnUXY0iCTrRbZGp8JAvTmm18MAxWOUWHAFRrbYvpx+ILHLOjC1vUqUi1I3QTqa9drebZQ+t7tappXNT9ai8SFrg1QpX2ygNbflqp00l2Klx+Ap2dA5BR+Vc29TQCRuTolBXC1mwtJmja4Ve1BShmlRe++bIuwV9605mx3Wd1At2A/ck3Ap8fxCb6K+ONhE44Qo9DaAqMuZx6ozxZEsS4Z+5bHHTUjHFh8+6vBUTQhtGKBhg1VPkYFj4GnDqJ9Kz5wrL8vD1W/oDhnemgXMuluEa28jTiRDdqGi/e8BBYvphMtvF8s2xVN9BgW/N2Qu21FzGFx1sCHZvt6XJThC3G368CsEaTms6O+nTImFvyD051G8jzbie0gFJo5/q4yKpLYaA5dHfCoSLfiYQqt//x8AQ7rO1b4tuzB9U/UOF6e3A3lKMnflLj6Ko 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)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(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: 3qSkkuTXhzpXb1MKhWC+GFGJSJuFg9wsFigSa/9V41XzVE5ramWZuKrAZP/2HM7APxsB7NAI/HM80ozeuiKSKvuaJnNtXU4cVLQp9BietkS3yEH3dhpjnMut3UgkneYSqHrgYHyyGWTl675xDd5jDBeLCP5mSGcxgJp3cftV6FNo+fNIu94JaE1LkDGdRxBtsqOovRHNB6a8+1pVDyfOnUYpCEfr0sosfGoVaKRkBaojKj7emCvb99MLMosUgZmSQi6ua9yRKyP8LavMMm7KZhP12A0n73Fa1kSJl8gPjTdJV1YD4Uc3f7N7WDjb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kHUXpN6kArHjgCQxKmo2Cj7GYcpL4nu9hqmOVxryQhjh30nZeny2q8e/r8ntjCD5w8X8OcLcdH9T4334K3bx5tlyIBQZ8F4WVIgdbH3rAjw3zUGmrDdcpMHg0AhjfklJ0EiXpsvoCR//nsTAqySFQToiqo6GuObafC2ncd4HoLdC1YGb/xYKEhlVll+iouoTNpV X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 079491d3-1f8f-44c2-4ffb-08db80f525eb 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:19.6694 (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: UcKyYI3Fo+ien4dmo63b7ehY5rvklc0qY1plp5yrKM478iuSZASNIbI6MnidXjjiFjd0oed8mHCFp8lbwOEvDw== 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: 1771002955950184046 X-GMAIL-MSGID: 1771002955950184046 |
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>
---
drivers/gpu/drm/tegra/hdmi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 6eac54ae1205..f3a44ca87151 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1769,7 +1769,6 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data) static int tegra_hdmi_probe(struct platform_device *pdev) { struct tegra_hdmi *hdmi; - struct resource *regs; int err; hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); @@ -1831,8 +1830,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev) if (err < 0) return err; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); + hdmi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs);