Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34805379rwd; Sun, 9 Jul 2023 21:02:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSlctMuxlx3NjtAM6YUSyGkAra3aRAelLmnsSD5sombs1yUeM6zVltXUlW5ccnnSOil0sU X-Received: by 2002:a5d:6203:0:b0:313:f577:6445 with SMTP id y3-20020a5d6203000000b00313f5776445mr9233058wru.55.1688961777340; Sun, 09 Jul 2023 21:02:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961777; cv=pass; d=google.com; s=arc-20160816; b=BQIJDYyafLhNt4P+WR+dEP6aQZgTzb1c9TjQ8AfiTendQsQigUTJ4GPAZCOIoF4j5N z5YShY/Q0p/mtxUlFlE/s9XiY5d7Wh5px5CzyTEN0IwfoKmpqKIldr/oO6z5zgZmOkaZ g8XwJer5DRgBAvW+RQO3GUYHrwLuKbhNnQklVTbiHzsJCugHM38mGos2Let5fxksU02P npSZElHmG6RYmt4ncE4h7va1hkZzhUlXzzQaxP+n79RZN6uKzGLIOBA6G0p73JmiktpN MUYAehCGw9FZqOXAPvpcU+6zmsjVmX0UM/+rm0c3SfgUCXe2LdY66nO6O6IfYoiwcBc6 cQWA== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=xIxGjgDVVUiQ1d4k3jsa6NRVcV2Ulq5rsw340Q5ifF1banLiMxA/9PmyPED3gPQI9j 8hWkRA86Zm8dciBb56S7HxO+UyUCj0vTPxpbgQPogxUsMcjjkRtlnF26WsRq+uLhnyYg /zk5SuepZJtZ9gE+Mn5NzMsJZ2wW/g6zl3zlJxUnuSvW354Uhi7c4SrISE4jG7QZyiot xgD9s0HL/RxuKe1yT2mY9lotncAHsV4WwQyt2vGVR0Ob2MPDujL3+9N4NLm0nytz2hJ1 g1u8/UdPOMg6ymfCnVuMyW0gjYf3/Sm0SmPLumKHy2N6hVgdpkrv2zlJ1kHsnODta1P6 rqCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="WYVry/Pe"; 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 k4-20020a056402048400b0051ddbf43286si8045749edv.403.2023.07.09.21.02.33; Sun, 09 Jul 2023 21:02:57 -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="WYVry/Pe"; 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 S230409AbjGJD1E (ORCPT + 99 others); Sun, 9 Jul 2023 23:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJD0R (ORCPT ); Sun, 9 Jul 2023 23:26:17 -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 C1A902139; Sun, 9 Jul 2023 20:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ftSJ9njjX7csNckNqznTzfIv3iR1TM1Dx8uuSX8oB3oqtsHyYOMzTLZGLifiw0mJPFNZC4SC11VGy3IJwHkVQ9W7/d4sC/6GmJMb/7ZM+UU00dbS1V55ECS+1PhL027BtLG2Byn30VSz7em4SDD905tKQuJnlxnnBY5Rm/nYs/fX+k3c5u1xhWMy1lQa/3o7i/Mkcbs1rFaWV394sz48HSi/1k317cC22xKnuDZKmHOeSiMeIxbpSshTkM9/NISgLmLfaXGxXcQkKXB23J8sKRke9kC3b55O0d+clu813PA47VOKJ5imA25XiLQyS05Fo8db31P+lkQMg5aB+ouJ8w== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; b=AEfEkF3G7HF5Vu3j5JYYLwulDJY0thdGK1+ug7xNlXYtXAWjmSt8HKjtUk0MEqoiyc2nrNyXLAlQYVswYGGoi7ktz9qbwFU0D57qWhhP8mfE9qBAob0xAW+ksJRd6EP/iDsgv/LaoX1GC5Crn9kP8TKLKYFroTPtyKTi+jC8iA6Wg24ZfMHQHzAZr7LMErQvJkxA1cDYGaFF2BpzzTnLiQvYNJ/3KiQlRnpyVGB8FjKKXEDn78rxVLLNvgNdEc2KTax0K58X1Wbh834WDXaExZruTCSJwF5SrWK6/8IAYXQP/y8NgXWqBmXrLpv13ywFIPUdY9Zcb7GshGf1qHFfpg== 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=ld9P3YFbn7HPVQyzzxckyYBDskRJ6Ek1NWLPPDZFxek=; b=WYVry/Pe3MyrHvXlJwCjveAnnfnfZTcOYAaaWJ75voTf7R+JwQJDfv/G7aQSlPUj6ejDTWMbEhscb6cGY2wKNmFdivq6AWkGngjz0sWKP9x+tRALzjE0mbEHfo7QR1JcV3/FeTso6nTAzHb4JK7ZTL0tUdrxpzXXo8ZwYsZAYBTGo0OGs6NzoQ3BA0WTatHZmiPlrFgbHolxgMON6VAUPiUKGTcf+NA/jmytADDBp5WJcjOBlXgQbyQGT8si9D457LY1zcnNxhSK7/kyGkD1nb9fYpGrfY/MNzTkonn1Nk6j7K3ps5896vQxmbNHrFAz2FahZV7yoKVvaxNaZg9LFg== 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:37 +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:37 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 12/19] drm/tegra: dpaux: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:48 +0800 Message-Id: <20230710032355.72914-12-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: 8aac08b3-2e56-4875-92cb-08db80f53030 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U0H7DdEk/mT8vPNfI43h6BtwGod6JNZkQtUHTYnk2qple1zFZSR6hlRiaoSyNCdmLPQ8b5USgBvcig3mnGbq8tVGxF11LMT1uGbjJyb3oAlda5bk1waGFLlYqRecrPlnyM4iGa+WEPrqrFmrJBkqwwFEv1juv+g+WWT7icQbvt/x2/gybbkA9BOAGNRJzANQa/SOr9HrcR1CpkRhDQCJEBNAqKsf3mUNs738/v0XxBth4EXiOo4RdKMG89myGg5jUCLXGBPgtmMr7v8J9WXGGu151iGBjVpfSH+RmKQrFgW7Uib4wlaFoCalkuMU9t664q/qWKKgdGazx8Bh991B3PkZhzvlKFuaegsJmvd09QVKZpbQboMvaRlkXythYmXxghS2T1Epl+WBBHFD+cr6hJjB8W8RmIfOdZiGwV9SiWbpyJE7UYLg8jCDWjU9tBTTSGsixlJl0YxbJmHoXkgAhQOshy30HvO4MrejIq33AWTWwZhvlhqZAPzs5GICS+RHat6G3CCFpGfxIKfxD+rlMlHLbOBbMA/FidR2kEgdD2IhFPkKqVZ79QOrJLeLwKFUJa+Hdx4U2BZlZsW9F1VgVBe8SJShUmbLksHEI1PR7GZDo5HX59lmHGOG8wkCZe60 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: =?us-ascii?Q?7Dkc2CPwh37CnIiPIf07R3zG1n4osK6AfdE1+wx9K0Wvti4s+CbcXeUThwM1?= =?us-ascii?Q?USdIp5mIa/1PYgnHE+X9nixlXvKCtMh35t/Le7hysg6n9Hxzv52CKbxCeOss?= =?us-ascii?Q?DIL3DuwBqFQ82Pyj6m+05P8sh/7p0+it2vJXeQWKLGU99+VG03MB0RZsaNSY?= =?us-ascii?Q?o26wPQfb2gD072PO2p6MPe3AEq9AsvoJV+l+aiJh6qL8KgtXDxzpqDxr+uR2?= =?us-ascii?Q?I954Ap2GuEeJgQJRoI2JRof58kS37n2eRtBKHYyVlbjEGJA6GQ1kf3ribWeI?= =?us-ascii?Q?7dPJxCRhZviEIPVLc0Zik4UT1lBa8PUNR0tk10r5qXvY9xt+KpErHQw8PeeB?= =?us-ascii?Q?P6F3zr0rf9dgNte2c+aqtj7q0SP+2/wi4fO4IuHqJP/5z4i5rno4jUc0zZHX?= =?us-ascii?Q?/XgaTpaNPI2ITKnidjnxlcfSGIMsOmdfny0M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gfZy2rOQQtPsme74sUBnK3udkEgXAQiqaznBs09ApKt?= =?us-ascii?Q?RElVgJPGyGfR2McKzbwDLGGKAiVOTYzaf2tlbZBD0bCl9Lmfn4siLq3233Jn?= =?us-ascii?Q?00ZR1Oa20fdpldmTlI2HQb2h4br1JULZwOSqG53+NKf1eZIrxypewg8hpm/B?= =?us-ascii?Q?yV+06tpMn0elqcr+b1IQr0tKxqgSvhU3oTiwpUQAxGDkWVa7CzClLrJiznvN?= =?us-ascii?Q?oxTDuKfu4jNDvRs1jDY+vKbFLMLwgF0PNTV5QyzJ?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8aac08b3-2e56-4875-92cb-08db80f53030 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:36.9202 (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: bLv86LzoEB2kW1DjJM9su3F0dD4pGAbAKsl+v7n5oPbGjOKDIiehP1GQxBdbzhRIty6ibolYF3tL8GD4OEHDVg== 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: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/dpaux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4d2677dcd831..4699def04190 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -447,7 +447,6 @@ static const struct pinmux_ops tegra_dpaux_pinmux_ops = { static int tegra_dpaux_probe(struct platform_device *pdev) { struct tegra_dpaux *dpaux; - struct resource *regs; u32 value; int err; @@ -461,8 +460,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) INIT_LIST_HEAD(&dpaux->list); dpaux->dev = &pdev->dev; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dpaux->regs = devm_ioremap_resource(&pdev->dev, regs); + dpaux->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dpaux->regs)) return PTR_ERR(dpaux->regs); -- 2.39.0