Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27650445rwd; Tue, 4 Jul 2023 06:05:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4snyuJN2XckwMHhmrlp+U4quPPyfl5QzUdm30syTVMVW6VL0wIqePer9nu/K2/WztNIk+ X-Received: by 2002:a05:6358:700e:b0:12d:a192:2592 with SMTP id 14-20020a056358700e00b0012da1922592mr6464924rwo.17.1688475920285; Tue, 04 Jul 2023 06:05:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475920; cv=pass; d=google.com; s=arc-20160816; b=XZeS8erJkaRfoxxWEU2Dp5iOPTlKJZSqR95hh9i/dJngJXHhqzlgibb82oNFNJhnEM EUTFd7udfDQtIQYy2lQ2el+CE8pngk24NVzfH2fxWQQvD9fHI6+b9ThJm4DlAW+71fJn Hw6DT7OeVEH9J0+I9MCirgLYY/5y6cx6AzClZEW5Fd0Ni8ee8LVgzBKGd38F6JtUVBm0 XHhvLpbbeA7KX6TT5w54ngK8B95jaXYxJ8VOhr0UWJadcLNgZz52/5YOi6bgQgGP6luJ G50RkY9jRwlDGvEs7UC1VpX4klRRGPVaefJv3lyPFV2fsMphKgVmIcO/rsVqeFWhewMJ IVZg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7O4jvljBdWjGRtnVNCj52St+UjbBfVuVP1jgmrHXss8=; fh=zyTHP4ZAbpdEy2bamgBX2x2jvhmNgZlYpXYWD/xigCo=; b=c5H6CH2PkwPLsVc4aYtz8XaVFQCUkKHpqkipeh1A4okonr2HCXV11Zl4VIBG/v2GGQ 7dOfqGBSTAFTN5kVkCJ1d2aCug3HzVlGpiQpkq1llfc84w+Ao8zf6Ti8RaHuheap/vCP KcZF7RvIh/CtZLF0zyfoHfggSpbjVsJkBqH3XEKuyZifT1+Ay8x4hXIH7+bTqpCNcBJq 2OG5EequkaLFEENjkQ0Vd9fA9VyT4g0H4AuxQfVEbeE1VPb/Xl5wTYT0b4Jubh2oIoA5 +ufu5SxqUmO2UXlQkCJ351gtS5nV5WaLaAcpxSx9qNzdO87c5kQ6i562NjZCHWx5wJnE NwcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="eb3vx2p/"; 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 x34-20020a634a22000000b00553d904c946si19753280pga.514.2023.07.04.06.04.52; Tue, 04 Jul 2023 06:05:20 -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="eb3vx2p/"; 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 S231163AbjGDNDb (ORCPT + 99 others); Tue, 4 Jul 2023 09:03:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjGDND3 (ORCPT ); Tue, 4 Jul 2023 09:03:29 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2127.outbound.protection.outlook.com [40.107.215.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E934010C8; Tue, 4 Jul 2023 06:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zs1snLzOeN+S1fR1oKppyXGEmlsPmv11Dn6P49wJKJpiaJHts5IKof+MN/KtW2yUzqNVvrfu2sfASEygqIxQSdORiLJz0e+q9CY9e77YAQoq4O+x+OispjuBPrcdYApNIidToGyTl8VEHI4V+OUp7rC0VfZkPH2uD9VIPYXIgLVYTPmo2YFlCibD/skM4rmAVhLVOAQgCY6NiwEHRvlfPcVmvWJE8lADf9bVA4a+l1IbAtxjuu0Zsa3C+R9Lmf11TVH7/zAyYvuVNdMqI9UCdrN+Ih97CFE1QpV2AUFgXNGkZ+OlnBwTh9B0+pCs3JUq/NiERdH+G2EdC7YpeIaI2A== 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=7O4jvljBdWjGRtnVNCj52St+UjbBfVuVP1jgmrHXss8=; b=fZqjvJ07KQD93rw1wKDC+Zl6mlC4FHagQWmRV1/guNqSf9RxTWee/ny1e+lNsFFR4s8NzyiOK8NIpRBCE449UmhTJlsrpV48LXR5qAJxiwe1b3CtG/uquu7OvbU+0+hVZujD6a+MqyWohRnT0hzrZb7+8IqH6arvAPeU2ryojValJkmquOQsn68POZsOIcFHPmfGA9FR8z9O6gW0niKWsEQN+EZ7LT2rYIBJACjztJ7yNtgUy/SctyFJ8IPQQpOF+Akg8lQZRRSe/hYGrQSUPHMbE0Z/Z0rp/f20mQbwuOr5OAYLVc6Cz5F7oS8VfjPoBG1f/deoZWp6at4uCOxhew== 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=7O4jvljBdWjGRtnVNCj52St+UjbBfVuVP1jgmrHXss8=; b=eb3vx2p/CWQ5MHvaUixj2qUEVfMaRCRbde53uziRuUhOgujuCsyG1caNHkvCaBdAhgHoN3ZRSwO7uEEAg4aKv48JZtlXdJyVTX/K5J+WtOSGF9ICg7r7JSG37MP+OPbU/2Ngzd+RCtLsSx+BrHC4KtO66/2VJ+UiaS5N0lT9B9821sttrRVFbZ21LPgxP7Ji2wvfR4fIsMjoXiRKc68D9jWR4HGZ+WO96gZIKSWqvVkCeEU64tG/mrd9MOrjrk6TS7aCJJXH4LG9R0J85y6tirMb0m20D8anHeSeLfEF9vOFqJHmAC2bWfDVE7HOk0jCSPmlrEZh1257jHkXkcc1NA== 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 SEZPR06MB6198.apcprd06.prod.outlook.com (2603:1096:101:f1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 13:03: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.6544.024; Tue, 4 Jul 2023 13:03:19 +0000 From: Yangtao Li To: Sebastian Reichel , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] power: reset: at91-poweroff: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:03 +0800 Message-Id: <20230704130309.16444-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0209.apcprd04.prod.outlook.com (2603:1096:4:187::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6198:EE_ X-MS-Office365-Filtering-Correlation-Id: f949c01f-31ed-451c-369a-08db7c8f097b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K4w3Ww3mOGhEacEe0eLyrVtjh+prGap3pNMja4vngEX0UTDTVzOELKQ9mwjRLRLnv+dN8/12tXqE1K7qRSScuNeegS1uSi4t1fIiE8OZd/JQD/S/+MZFc+x4Qg44LVmhHo3NalbW+jvRGExqW1ZJxvdyQHlmPB9qzxBFuEg7GKAWBV4c/hWFV8Cxnz4q9VGGXux2BY/6tpYAr0dFw05Kkr6k/EgLZRtel+yisy2mUd9/rQ8slfvsyiHE6fuBheFcD8l5jW4kyeCsfUTdVCVVlwYlZASDukeWwRh+AdJygPGwEMN4nMW0ijr0GEdN2Hk9ZywN7VQbzimwC3S7GEFqeu8Tcexbs45drJgl4HtD3k+GSmHskI8kKtS629iwBtz1SD2oXjX7DrGE96Bf2KgFubwhijuPNZlwXOUdLdNiQ4drYsvIaaioDaFLLxiTUpewLpgOOCSxGL/5j8uH+cyEA1L2TEH35qIVOFKvqSO4HpoUdZQ2LaLjTBYBvqpF3R59q2pMcLJ2LqwY8WwUVunj0beduE5awwqHoXxFMZRms/A6QNHuPPzU8JPKuffrr60ruuX9wkTc8BCsvkpXuvfE9WaPxX3gINdq4HeaEZEdpKWz/uNMFbO8PbDzw/S+ScsP 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)(396003)(136003)(39850400004)(366004)(346002)(376002)(451199021)(66556008)(66946007)(4326008)(36756003)(66476007)(478600001)(316002)(2906002)(8676002)(8936002)(5660300002)(41300700001)(86362001)(6486002)(6512007)(110136005)(38350700002)(52116002)(4744005)(38100700002)(6666004)(1076003)(6506007)(26005)(186003)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TsYveq8iOvWEN8M1qrmZZBjrRQ8Z7zWBA8wXbn7kYtvuzhgud8VhmU4+4PYC?= =?us-ascii?Q?MMgX1mnwCJxKBmUiiQUq0yrDDEfBPBd6m/U3boTPFUsioUOQoToJYSKhJsYw?= =?us-ascii?Q?GZ9M569/n9eI1Tf9uJnh3mNtD2ZB9CLMR7Ppn1G/E9mbxYUilqWo80Kzga8l?= =?us-ascii?Q?bSwL9Ew0C0UHMqzMq/xcI7xVBpfQhFoN5Mbx5dXEI5VZmjIaX7s15r+xidF2?= =?us-ascii?Q?yzDqfqRMN+kCH5qFnVvociqU68OT6QsRIP7z2Zx7vvGXcSThbsFGrSa7RRHy?= =?us-ascii?Q?cWQrOO5iqOczIfbH7WNwfy6t4eNpMi+IoHVodOUJAA2eyuAL2ysCNn205PdE?= =?us-ascii?Q?qKsLgEOaHf8O0JLBnzxbiuLAq8bO8de4Q4fByOCLKr5o6gOV/vj//lwkySW4?= =?us-ascii?Q?on8Wt6hI9e4x4BdfFedt2z1GrIr/j655UHerN/XhbMF4F9F5HOsbbEJHPcAm?= =?us-ascii?Q?BBMitGJlUSMEtYRute7W0JhYR6i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m?= =?us-ascii?Q?QeI8TC8Zj5bFVLNXMGT+Sqs/IXbOpC+8eGP2w3IXODRbinJKOj9zFTg1pbof?= =?us-ascii?Q?HgEYAZAfGCcPdiGY9m5dBZCemUDiK5yoiaiFaQ/r9BDpxsGXOC9/g7yy8hQm?= =?us-ascii?Q?WHlxeBpToI8sc60sZ+g0d1leOaLmgFcY7Qx9oIPJRwQBqqf0CGH8Qc8eBoE7?= =?us-ascii?Q?DeIKgTlG0Kq4j13jVsxq6Nc32ctPcYiYSNnThGQm?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f949c01f-31ed-451c-369a-08db7c8f097b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 13:03:18.6665 (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: 4eGqdZitlPKgcTseFF82nRXJZofFDy/EwOW19vHmXq7dSAwbc+FD2rcXYlLDLT1eyKnzJ093gu3Hhc6Khg5k2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/power/reset/at91-poweroff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c index 9e74e131c675..dd5399785b69 100644 --- a/drivers/power/reset/at91-poweroff.c +++ b/drivers/power/reset/at91-poweroff.c @@ -151,13 +151,11 @@ static void at91_poweroff_dt_set_wakeup_mode(struct platform_device *pdev) static int __init at91_poweroff_probe(struct platform_device *pdev) { - struct resource *res; struct device_node *np; u32 ddr_type; int ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - at91_shdwc.shdwc_base = devm_ioremap_resource(&pdev->dev, res); + at91_shdwc.shdwc_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(at91_shdwc.shdwc_base)) return PTR_ERR(at91_shdwc.shdwc_base); -- 2.39.0