From patchwork Tue Jul 4 13:03:03 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: 699488 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6CC7EB64DD for ; Tue, 4 Jul 2023 13:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbjGDNDa (ORCPT ); Tue, 4 Jul 2023 09:03:30 -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 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: TsYveq8iOvWEN8M1qrmZZBjrRQ8Z7zWBA8wXbn7kYtvuzhgud8VhmU4+4PYCMMgX1mnwCJxKBmUiiQUq0yrDDEfBPBd6m/U3boTPFUsioUOQoToJYSKhJsYwGZ9M569/n9eI1Tf9uJnh3mNtD2ZB9CLMR7Ppn1G/E9mbxYUilqWo80Kzga8lbSwL9Ew0C0UHMqzMq/xcI7xVBpfQhFoN5Mbx5dXEI5VZmjIaX7s15r+xidF2yzDqfqRMN+kCH5qFnVvociqU68OT6QsRIP7z2Zx7vvGXcSThbsFGrSa7RRHycWQrOO5iqOczIfbH7WNwfy6t4eNpMi+IoHVodOUJAA2eyuAL2ysCNn205PdEqKsLgEOaHf8O0JLBnzxbiuLAq8bO8de4Q4fByOCLKr5o6gOV/vj//lwkySW4on8Wt6hI9e4x4BdfFedt2z1GrIr/j655UHerN/XhbMF4F9F5HOsbbEJHPcAmBBMitGJlUSMEtYRute7W0JhYR6iJp3j6TIVAy8r8pxT8SN6+xb1WVWEp7vvDTIamp+t1GKk8y5ImNKAwQ7RdB4C36yfIQxUK8QAYuvkl2cRdYXtcWPTCvPhZezD4hQmB158m3Mouwnho4SsC4QkKr6z7GcC1Qihli0q7NHS4VaRNst/T90Ybf1quq2pO+t6HLz0RyWArd0dntKjzMq71deCg8vH/pbRB2c0cvDahzgPPXPK25h2T2AusOLGSy26W+i2omXhCBJ/WTMenBwwjWgy7mKj42XeynlYNLWTBBUK2RwvosSm4i4/iKUIl+2dB9pVgzMj1SoFI+TiQLWxKjN6EZ9NbAKUW8A3HSeGSgVgG+EUB84Vk9xIEQpo0muZRxwRJQFxQBVUSEvJ5xWKiiJiP3MBt3x2kmCoP7Fidi/Mtz0oe3ICYOG1kEnig7TDcsATeGcn5o+zePAFBhFppX/4tyTdCpxl+PNPtISFYwKl3EtdCFKef9Hx0VHk0K6KsxC5R6tbuRS6yZ+36Kk3K2MJpBmXPF1zZiH/vRtcbdrxgbDRydKYRqAruMA6QAt2h9YgMVkW63DXRixlLiBfCidFV3dGH5hHAZ5MmgF5sLO2NgcGKL7K0G2W/5HDHjpwTFEYCFwgPtQ5lI+g5VpARCIKyVdI3PLi0SPtsPm/SpmRc5FbuawuKAjWeLH6uUrGNgmzGZpS8ygFEh5y4P5x6bVQyj46xdkoLw8uEoXEyAaObmjoTWYKQ3doNKP+Viv2VtYKpjA4OfGREozYSoTKDmCzInmhhJLb32Y2YLseLNZFzO/5yCxFyk00Hvj8Eo5qjzbwpxW6nz5EhSuEHR+xdSpq20QyKRoskvHgJwh1IhM5SWkT7p+P1GVYpPGYqueakBlLmQeI8TC8Zj5bFVLNXMGT+Sqs/IXbOpC+8eGP2w3IXODRbinJKOj9zFTg1pbofHgEYAZAfGCcPdiGY9m5dBZCemUDiK5yoiaiFaQ/r9BDpxsGXOC9/g7yy8hQmWHlxeBpToI8sc60sZ+g0d1leOaLmgFcY7Qx9oIPJRwQBqqf0CGH8Qc8eBoE7DeIKgTlG0Kq4j13jVsxq6Nc32ctPcYiYSNnThGQm 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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); From patchwork Tue Jul 4 13:03:04 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: 699155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EFBDEB64DA for ; Tue, 4 Jul 2023 13:03:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbjGDND2 (ORCPT ); Tue, 4 Jul 2023 09:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbjGDND0 (ORCPT ); Tue, 4 Jul 2023 09:03:26 -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 0051C10CE; Tue, 4 Jul 2023 06:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J6EbQR1Nt6C2E5SM0AUvk2HtvPFMsSip3SYUPjxc2z1bCA/qJG4sXlehFope27MpLmfCEVjCTIxf89QHfQyCTO2N8kYFrSevAN7aonwRD0lFCFXSB4hHnlIraKUDozn0r3KWfP6ewwfZmX9ClzaKMinWLL6ZvPLPgAPK0tDloGykIEovKX05NKILk5MgYRggxsQUPBKe/GEZU8R/E4YG3R1EbScLl3RKnnJgTVcqTphq06IqLZqQw0OXq6EpWKrUj8xb+G/N9WezCc8o9/s+RSCZGE1o0xz6YKeynHZPtboIonsbb+wTOgQt8Z0SuP/MIliC/rxj8jZCIZZUI08Zwg== 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=HZoaJ2ss0Ouf7T3wqe4Rjxy/uV5EQbGwn8UrA19tXs8=; b=LmdtPF50F31MXR97xUh/ZixNdW1G4Q+0iYwZ8gPTIeTNv5vZssyATlOod0JL2hdbjj6W3mxPm4qMRpsSOUOTofcqRFwQwgx1JsSA2GK6kdDOSNUXBnU4SdBA/IzJRgVygJIYIe02M8dQKTpTMyXLjY0lT5G+GpayAgdlta/byYBSGuvs5ZPtg0vd0RqXWAjXf4NzfWO7+NPwaKIUUqLsf8L8TLFTOYdPU9RxYdyC2UVulNTN0yOA0EVOZ5I6tnUlAsjv/bCVnFDSlETGtvXAC4Xd7b7cWOhvUebRCCv4MvaROXygrdLXHHHUz696CrQwwSxI0DyXrOBXPpnnth0+pQ== 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=HZoaJ2ss0Ouf7T3wqe4Rjxy/uV5EQbGwn8UrA19tXs8=; b=Ji/vCb7dRoqbjOqZ2JFV4rQXrF6p8CiVosPJ6TLZxqIco9ULRpwiBbdyRPwBtKFoKj/0iJCT5HheE5LiF7VVUR+ySNpO+tGbhUsknh1rk22dfxppUvli8d44mnM3F0Colf5pdEW7ViXdDwkpZGgD7eGXfI6KgcBGtG52Qscl/1wcPekkYqV7QtX5j3rAn+OpY5hPlyCJuzOd1LtRugH6uFo3Vul+p8io2i1+kgdqm9Es2GFKvfii8l/MASLnOFI6RBvTAtAYLlkhqpvvQ9xuq3lWk5ICEXSxBg6IiD1tO6dgiypZtuy4sPYAamnQcYD+wmxku3RlgWevbcwgbRfa8Q== 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:21 +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:20 +0000 From: Yangtao Li To: Claudiu Beznea , Sebastian Reichel , Nicolas Ferre , Alexandre Belloni Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] power: reset: at91-sama5d2_shdwc: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:04 +0800 Message-Id: <20230704130309.16444-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> 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: 12262d86-2072-4c24-8d7c-08db7c8f0ac6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: utuwIoNLW17DGW2AwOK57mwTP02sTCgS1ZK9l4+vpQo3IAZTy89Cno2YHFw0aSJH2PzNyU73G9qV2UMBzTEXpc6dC36Fa/fMidn18BFJW9cYSv2SmJWu6KAZ4/YdLAuJUI48BSD8oYbuz/rEpIwR7/C8fekIw1wHy7pmOEewW2jrvBzV5bIrLx1rmN7HOyRlP6ZzvPqpQVYNQ/qIB557GPL8rWKxlzV1659aFHvSWzThDEBZwVJ85+/5dk0bItJT1Q5GBPYlWmbA59eQMNl8Mlw/RmYW/KUiE9rYjYWjqgdcw4rjHlZYorXfwM2KFfkI/A2PHVFdNwqe+UclH6+0EZXvrGfeEBTRAabbapalJSw7a6lPi65pjtvSCyGp+S7NhbAhNLftFVS7lMK6LvoBC34eWAO45KGUPbGsZvsF8o+uAaYcZOiPm7s+1KIAh9qo9aPoL6Xi/dAKw8yxupl2Olv4ZX19+xQrWwWhRFMz1TRiNjbpDLmwBxKrAeK3NoZeG5MBqTEfiOMZYVmBYm04geogQ6Qy0wBaJVo/Gc3CXPNx4p4N/H8eB4AdbCTwWdfTIE5cQ22O3NLhJy4qHkODYs6V84RM1xW/GHkqOXItmKjI9b6aFJst6t41bqKf/ktL 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)(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: GwXYccp8+7i90zDblaGW3Bh+Vnxo3W3fU3tsgLztDXhlTuDkzpf+YXU10ahQlSqDw/6Ooe4Bkiv4LeFbbCduPKV+mY5egVDWO7PUBowin6C58s29/Gxag3qTsfe4i9w/tYujDruhsz9nRuTL3W+r0G/AWF/CfMPRhfucuwtImLmWvGGbmqgbtw00ljffzeWsFrgjDezrJAYxXGaZbrTf5u7U1A7eK2QoPuK6Cb+mJYnOu9b0eos5MuwDTjiLVBiXJ48O+BKy+wwuth+0qZgC9Z0asPEwV8gM+eiOx9rLZ2zLwf3QUS3cQ6uKbGvxBtERVzCyqMNNEL/qP63Lw+OFjr+dmjpsCWgk/doaM7jW1oyhL9ju4r1CLJT6CYmgiaaZBgll8CrTe+5aFEWZHON8a04hq+Mc7VTYEgAF1WZckz0k97uQAZwD3LhgQWlCRE/8oENuZu8H9j5I4/LQ8QOOVmxjO7TJZB0egkTrxFSswbKsBj/Dmz14+2mFRPaoU6R8bCQlURkkK0jqkJncTMdeZCFCnD2bkMXxUCNmd78jPMG79fKI9caDJA1NXwiyiQC9BV5AqmF6qN7impcvVxv8JKYBSzpryohDJq7kG3Uiuhy+eNJrc1l7MgAB05ccnjTNs2TRs6dI29DECSedtTSVgu3itdouHsmRogeTQP1czbKnsvbO+uO4rGCK7jcy+3QSBuLQWYbBxPOmI7iCShiKuTNXTRJLUNad13vu0TmB7xnufwhGaEyRxnGGNX1DpGXQWUyzVFiPRbo8bG8Ps0oeRT/BkdENCfjYiZbX8hmVTNqajz4Cbajc7y7Xwx97O4aXzinMSAodWtoXPhN8y5ju37Ak70RqJtLHZcEYpvl6NVS3Yq/zvOHdGrKrBTDv7pKcqDsuRJHU0bQvukXI+YZj0GaeYugTrq9HEWnVofK1Pq4G4bwZEylfkE7w3We1bt5cF4yiCLvoL0YT28lUIgfwBY+DGeVsXW6z53v0HdTGZgakGqwT7AQTdqOEXGxm5mmsj3TrMQOixvgDpjEBd4CpNwZnoEPlCDXFNBpiyzq/rBFhqbKU5vunZ8l9BXx7mJMijczBasxTIewjeASrRzVqx8um7HnM1itnzo1OOTSoP91T5yGlasJyaau+FM2oy3wyX2P7/81w+XjGZfj6vT489NSOgsRIHPOTY8zFi8nL5lVZsXeaXrlhRpn2llo57H5zv0cXzOn2IyvgRCyiNxzlOCgiwSdZS8w7upVBPFLJh2Q/P0LW8XIIg9x+L8NCJhP40S91P4AdBDbNpz4Z6tWjyudaHf7nqfXMLGiwnj1OjeNoPhQrlbCdO9OO88s3hgbkULVh87mD+rTfdgCiZL1pJeAZAkxeEahI2HbNuwiUjcR8uVIVRKqXql5yUUFa+pSbsCwMTUfvbAoF7rnV6NZrFSZpUM4x0fpVsWTo3eeHGrhKnJRd2REXOPqHOfThHhfm1SiMcxwUCFyk0QC5A2hk27szS4pxtHo0P5+6A59MAfqku9pj6IHvsuLieq7wHepqBDvRGsypeK4XO1MymFz2eNuLBrqewFrqsIkx2iw+HmbvIG1f7B+CkmnQfVVOxkV7 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12262d86-2072-4c24-8d7c-08db7c8f0ac6 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:20.8291 (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: e7oqBqYkiUvD0T283Wlvh3098govvXz5NLvuUsjAyjPVIAbV0cP9NsJyjUyytkTMYWLjFgpGYZ/lNTX7ZGPCTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/power/reset/at91-sama5d2_shdwc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c index d8ecffe72f16..e76b102b57b1 100644 --- a/drivers/power/reset/at91-sama5d2_shdwc.c +++ b/drivers/power/reset/at91-sama5d2_shdwc.c @@ -331,7 +331,6 @@ static const struct of_device_id at91_pmc_ids[] = { static int __init at91_shdwc_probe(struct platform_device *pdev) { - struct resource *res; const struct of_device_id *match; struct device_node *np; u32 ddr_type; @@ -349,8 +348,7 @@ static int __init at91_shdwc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, at91_shdwc); - 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); From patchwork Tue Jul 4 13:03:05 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: 699154 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A02AEEB64D9 for ; Tue, 4 Jul 2023 13:03:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbjGDNDd (ORCPT ); Tue, 4 Jul 2023 09:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbjGDNDb (ORCPT ); Tue, 4 Jul 2023 09:03:31 -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 6923210CF; Tue, 4 Jul 2023 06:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nCaN8kBdQlUdU4lGhuEPuUWSyIWzDxd3H+8YnnM7nE17BKeB71asibjc5x+yVxTsUjKhheNb4iSW70vnyxGFITboza3JYwVIZSHHwtOgAB3l89jqPAsQ1NbKAYZJWbtxrZBoYxVHwW1JJYwJxPn9plzFuYrlThaeTGegK+UwTcdpXI+8VWDCIzJ/AV7BAGbjF+G9ge6WgLhgYGtVM1olBBg3BHKUmpvroS4SggvIOKgezSJPWrKxXSJ7An0FzkEu4InDBrDIJO0HV2WVOM3cYPC1ryv//EL8sEvqzedaIcGbGSGi2qY7QikBbf5F/njC5pstCUWmSXnNFGLlGuXVMQ== 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=K1H4QRIw5THNFCCruk/I7hsZLPuqOLJzaUmubmAl4Ls=; b=Dx+FPXMH5J67qMRA+E5MNz+OotfcL+L0wduZLAjhwDsEd14I+MizMGkDYUIPYBH4bHAq5tWaSXU+bk9orfpdsIJ0QefM3tMlek7beWw9aZixAhucV8Wp997qwfmHf3NY941ewRnWhm5PhgmkOvvxNkg6Jo34Pb4EqvpCo6tNg3HgJEaI25XGjAqZhC41orIpfnpDuxeab94JqSl31IAXxh9ZMDuS0t2SWIJgrYVU9vHWfojhrdxh9T+Uskrof0g3ZPXOLa45lXD0TrJ8DRHvq4BaW3RldOLhCHsNBLtn52KKBc47y3AegXYx09v48/ENmxOXHNZMjI3aJz3jBIYGWg== 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=K1H4QRIw5THNFCCruk/I7hsZLPuqOLJzaUmubmAl4Ls=; b=E4ErRDRxYswtPrbFSrkenR918OxjgydQt9j2lIl0wD+WxOQ3mdOFzc4IiMSoclzU6N47sta5Y7M9jn0lZLMIsV5fylP3LQuqCxpSdG5bEyZZiBApiKDCJCfDcbsArsza/IbRmeI6zYxPtYD/EjVaK7zca8tfcDfrcfd1GCqxXNZGFhBxSptOBNOTiFCjLvl50euwFY+RlwaVTRQq2xJLV9OVwPb3FbaKS4FoCsbDr1+WCPKyB9PE5D3q3/VSkXX6X/NepOxx4wbv2UCP/owOB4ib6DCqZn5mAEEStxIuzAvY7GILY/IyUPMLyP4Be3uVsUY1txkX9MFmRIzJ2zc6GA== 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:23 +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:23 +0000 From: Yangtao Li To: Sebastian Reichel , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] power: reset: brcm-kona: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:05 +0800 Message-Id: <20230704130309.16444-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> 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: f33b1ce1-0290-4b3a-a2f1-08db7c8f0c54 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /0sEDedAkFLmrAv0oLBeCiMzgj714hPPJ5uUU2Tlnej0CUsXFFjAd755jWLX6oDmaW6/auDGrCCpCXTf4+Sbq7OW3birW525M4AWgsEpq09mZqbn8HIOKVsqUNqquehJ8blv5L1oR26f9MAu3pBx3nbUSEMt3V4MLZtqRmnGi6RYmwTuFN4ExocN55QqQpSz0by8L79EdBbOVG8n//xF59UVMpLWSvUP9mbb9YSOFvBZ1D6tr8uqr28Z/dJ00z8rhfv5W07f1GnH60P0BjKzxAUOh5c4S7vlIKCW6mNlpaeS+4ZY7oCMJph7Sqa+8ZlhfxAFDuw0+oYiXwsmP+e2HcvduTJ9nIplh0NMZnXOTvcKEhSiVyMj928fgGkpC1UlqIwUTfXgQqJcaFVIOeSKeiFQHZ14sQkNUXtRFe8fwjN9QCJ9r3m1OxoU4leZTA9IsM2V121sS4SUpDFefJtlHJqKIHt+T8W2P+aqaqNuOhKRTcpKaWanCl7XBGUSBMeEspDAg9J8R8jP6lnrC1aTvIQ8RycjuCghC/8+1e/iKRCvVPDgFWoG4JY1mgwP0xxoZlkQDty6ykpsX+dd8HpQ1wOGgumDhK5GvGLaP6g4jOeoOKFobTDhIlZu1foyEbpP 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: vpWe9DLR5+TYEvwSLoBPitchb04MLKFODN7Kf4/sVhNiU2j5YIRcEqo6Dzx62RIsUmhZ9Y0LHDP1qCkH9wzanq74x+BqeQUKWP7YwGcY4qI3AhLwil1t4EfR7HBJE4gT8oEQJ4siM8xv89hJLfcm0TT5qXCnhz8R6FP59CJD2tR9Xuu8VFMkaTyiFkhyi2DKn2sDi3SfIdhEzqCQv6L2PuUC/fij4aMtKaH7W9eD7lXIIy3XnfTHorPrMxhP/97iyw//2jFBxkn3a1FTV+Yi3UftGIvuB4Ny3MMfOAnJPk3L4dEJAWDHcoFAYiIneWJHYrF9tzxG0eqdZA1vvtQV9T+DuLSxMGh4jrFxlazlMylv6HeOGB8nOqjAM33SYji/WM2Gq4A3ngD1COBVqidw36LnAl7LW23bPxB7+66FBKxFsY0mi+K3gytBcfEuHlQZ83ijjmhL0O2tpJ9CE2C//jwtxRkUQMZ4CUfG/bsu4Dz3/fqBJaAUFOrRf9csSOO38XEC24BOBWvmAmixJEBCU7goPYe+UGcRGrZCPq077Ww4wD3PcRdDtQ+qEhnobfGZIeLpsY+Net8b6MfT+rwiHj7WDTIJuYAl1qE7oeKh9Ol7Tq01zYBoNmoft0oKGFHiKdibklW+kuUr0LgaITzXRwkzqrXaXu2PLXlykbQ7JGmpePYWVOoNgiEZEgPqA+o3JKc1Kl+KCiPmrknvbbNtnGWjMM1imtcyfI8HqmtCuvzqdkl3nRD3H5mBNWxMZ10Tnc7y4QD5aGuC83C41qu+/fH42hYajOVqmB8a4m3zumaKp/tXfV4mrDfGJ0O8T3Twi5fG4rxKughqR22H+SnKKynRG7F03qG+GhsFB+xLHyuxZvscfri+pgt3Xgr65bI42zTWuiHMSvUbELdTvHGsi9q//5vvmXNq28KalyVY/Gaqmjl2pGk+1U9OXNOvIAFKxodJ0RWXTfofd/7vTl/NgvgQBn7oic+zgVn2zpY84XF/g1oHTokHuFCwVCHTSEuWGjwO3S34qdsU0sY0nrw4YBJem3XZNMncP1OeQb9rxZf6qt0di4BBWl62Tj5Ka12sbne0nUS0iXIZyqIR+eLDggqyki65t74RDkDaA50qVzLJ3qI2/lae38VzAV2DtiFqsiTT4gEL5eHSO0b8jnjaThD5s/E75MW+ndD3M05ICvnic18IwgHEBnl5Zq6NIb43YvcrIRha40puryReAc/iwdaWvD8/WWd7vuP46EIjO/D+fIQt30YSB4C1xgxKtBOm6YLnX4UgpZHL2NvBiKc8GSpOIqaSU7b3tNPrTJU9EXnH8HnvemJmqZRH/SvPnlsqwCRLQI+F+P6Ps1g95fDagfAa40Aqb07Sae0Q3vtkeboA+TxR0dtmAv8hBN+Y+LL//6naiWXrWFuEMBsUz++Oim8l9ZvXwzxV/C3hxFKU+/IL2MqpUaXNYWrmrrbnWvk1VAl2/BXIIG2CLQ+uKkPBe3bsh/ewhvxVC2Xfrb0vG9snc4zMAkxaIpKpMr+Y3FjoygYt2If9/1jkr+ch3vc1KMCwAnAbwNItX7VbzcM7iaObOs8t+0QwRl2wMHPJYV73 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f33b1ce1-0290-4b3a-a2f1-08db7c8f0c54 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:23.4492 (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: CFNAv96d1UFeTKKRwkCf+NzUD1TUxiqGTFWgpDdvbRocZxpsWn+PjM7xQpx3G97PFDwVTo3FyOnJu2YoHoa35Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Florian Fainelli --- drivers/power/reset/brcm-kona-reset.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/brcm-kona-reset.c b/drivers/power/reset/brcm-kona-reset.c index 3de024e3ceb7..6444f6154761 100644 --- a/drivers/power/reset/brcm-kona-reset.c +++ b/drivers/power/reset/brcm-kona-reset.c @@ -38,9 +38,7 @@ static struct notifier_block kona_reset_nb = { static int kona_reset_probe(struct platform_device *pdev) { - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - kona_reset_base = devm_ioremap_resource(&pdev->dev, res); + kona_reset_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(kona_reset_base)) return PTR_ERR(kona_reset_base); From patchwork Tue Jul 4 13:03:06 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: 699153 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE305EB64DA for ; Tue, 4 Jul 2023 13:03:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjGDNDg (ORCPT ); Tue, 4 Jul 2023 09:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjGDNDd (ORCPT ); Tue, 4 Jul 2023 09:03:33 -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 E34E510D7; Tue, 4 Jul 2023 06:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XefPT/2xkxhxFuQ9Ne+8vatFnaZWSK4rQrM+ZYbN5Y/aZ9AXraMawdPeI/p/KtkQDJpZHBVTsjZKjBEKkKr3ue8cLvKdRLXtwmigh5plR0no/q3pgc0c1XhkDSwdk1ysfDK/Bk+shCDLxqB44HpSjJ50LZmT3BNChueVP0YfwP7EiETTiUmbn48VRqI5tTJq+iG1wOEDnfwWpwGDOvQ1alub9JnrNqs8asYH9fk38HHi9tDWC0sUkJEe+S1RiO018ZR57H/u5rWYoqtjOaE/d+Uv47a6aP6B7w/Bn2B6uLVpJm2c7ldb8Y8FdiG3j06s7kfEJIA8/5bp5YhvK77qdg== 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=tk3iDlv9rHNRBkRhDmtotB2subvvB3BbIgxX/4xOQrM=; b=F29Mxygw4QeZ2HMI/jSmwWtz0vGnJvlzVYnOYbMZ14EoYk03aaVTTpb6MXKYP05hRX6LVqB4xTPaBX5eUOn7Aq6An5T9RSJQQOO/EuAViCVCuPh6jL5fPgKf68/5pJd1qKfN7N3l/wp0LHLXDN7h+9Zie4DAlgDzG/QgoVWn1oZz411GbhkU9Nv816bpS7uQSB0xEKir6c7OrgcCjp+DdWO1W+tEfhYFoAIJeHUgQs1PBJrDvUVN9LFvInZKRZtRU4XqiCDeqEE5m+VTdIPSclmNB/iEkIzk1wkol+Xu0NgwYUQN/3bNf87xVtCLdvKzT+DuKfI2rnb/b6FCk/vRyw== 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=tk3iDlv9rHNRBkRhDmtotB2subvvB3BbIgxX/4xOQrM=; b=BUJCPHvqZE53aoDvOMvi/0S8vqRRuzheup5P/RFjj2H197fRWDKwP23fNMFpr732e8vUz0PvDoGraLrF4UtGBc31OxQUSGoIRqSBvlYLq8asoxRy9o+fC8RE5PVIRR17IwHryq/gI+P0q5foxIvofk2C7QaxERON0vv8UbFuyofQIwil2Slhozq8t/+BU3zp81eoOMCDUyvglJp+9cxhDRMFJut/9u5nUqBsFAQzS0pHsQYD9svJUWNM9ZJrlWOjOdCzY+hpOYKEMXR47HF80341bllYxzToV4Q0UkEeTO7RwPYYzd2cD+ypk2iiwyj6psGoiVpRUP7XE9Gbqx8ewQ== 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:25 +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:25 +0000 From: Yangtao Li To: Sebastian Reichel Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] power: reset: gemini-poweroff: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:06 +0800 Message-Id: <20230704130309.16444-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> 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: 336e3c78-2664-4970-501d-08db7c8f0d51 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JIh1lxeo2e3fFJMJV0JVObMYXSanOaLYGwMR2wwiqTiURzbiUa+I3QKNtX401wm009S8tIqYy/U97LL7B2/EC6FQogI4xJLeNXD4Zh1Nc4XnSdZdhjzixjDXtoFT8Dau8oqw4DcEr9x62hQgxtxWVtp+5FGgSvCDd6jJlYcQDwQBjXkm6sTAF9J9aGRYId7cevxLeM1o8K5aomn/Xcc2W1SmAm66WC2FU0Q5ZjUmpjZbDMGDvWIYJTTMKGqTsF5S0ijxmR5kKpMAYC+fzs6RuEYPG60hPpvo8lJAyXVGEYcfgBb9DO2Nwjq7bkpYuDZixortGNuV5WuRKCFLi8hyi6HiyXy7OnTXKuASXUSjYoSiUYdkrlA/quWs6TuktYEcpG5XrmrP80bNgJlBKHP0nGJMoIcNF1GDl+yeoYoVesOvgpErEgamqxK6EPugSyDy4uhw0o6zwdhTwQvNIgtVASmH5s7YLk4Mhm0YIbSv+UMABcXwX5KsS9RTYKmcYZimFzNg1xzsbRriZYR2Sc/hSXlcTjblH1BX06CzX9C+zlPh3c586zBfhSVN/Nsx7250M05nw7xjA/HTtp6goyVoW6Bm2FK/C07tVy9dLRi0YtoK6j84pv525UavBDAfK9Qj 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)(6916009)(8936002)(5660300002)(41300700001)(86362001)(6486002)(6512007)(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: 0fbaKSKFKLfpP6C1Ipy7p7fcFBPv49CGSc9AmHl11KCAF4tEv8kLIL2c+OZurci+IgNXPFIkxIpTmNmSnUZ80TtftbPgNuhakCHws1pglaKjinSDf7i76N8e+Dt+kV92oMqbzH7eZ8FM5ojDlJj9YDClNzNKEUeDFA2QutKghBc+cBFjPo6uRb3+cadjqQhjTwdrvaNUdFE8B2ObVaojD0oAQyGcHRyUr+7h6Y6j2lVkMRzAEZ81PkN1lCV9dW6gPjLsyrzyykz0aPF3jR6utZAqK0H22ZmqS4138+u2vHXX9MW3SXL5sJ864TQHBiAhWtZafsARpIyNJ0pdiiKXJE6EZ77+Aqoap51LVMh5z3ychKewz9EaSc7uUN9vaoAC+wtS2CyqOs+/DYCBvaVm6LiXjkCwSCUGdtqD+hN/qu99mqiSkaxESY/Q2O9tw0syWCem5mrt7fgVPjFsAzH7F/F62lim9NPgjqjoXgAKk9vXscbmweoXQor+t1lFQr8908egAb16aSlEi4kwIpDkox1BeCzt03Vv7vcB+zXleAQdAe2PLtCoFzaiXe3T0xMlH40TlrxwLFt5cxyj8NE0czq91wNWszw8LTfFbG3D3WFL7kv/StWthb0vUyyz1Q9BwdtwbDq9kBWM+SXHF6CPhPZj9tlzEY3sWm7AcO328t5sDJoFSad7NEBpjRj5dW+g/WwcKqeD14J+/JkiZcpjL7ysFKeQPWC6clM1Lq7ZKI2elEqG8g1tb+9uY+0IWv79l3yEoyYIrhPPkmIZfQYN+7kK8Qs66GxuGZ6/Z2rEf6MAibt6znUr5780ZR0yAIm4vCLMGvpc1C5X5EKFeCl8PsJPl2ogzJhs31XWq3HyGTNyysqwqxjzX72Q+n0o5xpHGI+QssFfUMvmY+FVtCDEeJ7GLvOhGgqSkx8yg04tvVueVBZGOVXzZpR8xmPg1dftpCwQ6PCYJer752d06gZVMbJxbYJ18GeJV/yIGtypqKfBtNtKjRfqEuW0M9YDi7TKvZqGYfGWgQfxxNONWaq/uZTlJTSVJrQXzyCEy2daYWF7YKRC9TcMHCTliiMKtxxOAQ/2PaciEq0k4jHEl3hRH3UAI9/vkT4W0JQdCWUVGtdkmuG9ftVAEgC+y9b7I81B0pD6Og24NEKiB/OCAJS8TauYbnftt+tc7hE7VA8Lp9wTp8FE1lLOq5Bbqj9NnZcMuvw+UWTxPlH7rKyjfJmUr2Q0JzghV2mkVkzPxOXmE8mei3xc0Lsh0zLjpODEcawc/71Z3hPI1qZm/ME5orh0UiqLksvv8PwVD5hZBCOdpIVWvhYTyTObdSFHhh8jGFTYMEYA/epoYqMlpYUw5+T3I++DElUFO3Kk+PTPDzeC1+OBNrSNDEMDoVHchAAp8UeOWM6h7SGwVRhrsat0yleSzs95J2UGQ2X3LSSLoMQMmLOVaUu7GL8YRtXXoC98yF6uXrn44VD7yXV86fXUIbBuoFKxkWscCfMpsLidbNzQWajBpQwFI1k7z0Dlc8aUPEo70hVumtFU5qBfm2V5FXCgGhnA5b/3ZzLMhUmBmaDrujDQy2YsBfSBN8z/aABb2MyY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 336e3c78-2664-4970-501d-08db7c8f0d51 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:25.0900 (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: swkrQUvJ+pawagnGQs464yEh+SlsWVfq/ceD3ien1SB/pb99N5T8QJlhSM3mGOmfwGZZGP6UJTe/AFbUGyD/zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/power/reset/gemini-poweroff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/gemini-poweroff.c b/drivers/power/reset/gemini-poweroff.c index b7f7a8225f22..d309b610142c 100644 --- a/drivers/power/reset/gemini-poweroff.c +++ b/drivers/power/reset/gemini-poweroff.c @@ -91,7 +91,6 @@ static void gemini_poweroff(void) static int gemini_poweroff_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct gemini_powercon *gpw; u32 val; int irq; @@ -101,8 +100,7 @@ static int gemini_poweroff_probe(struct platform_device *pdev) if (!gpw) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpw->base = devm_ioremap_resource(dev, res); + gpw->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpw->base)) return PTR_ERR(gpw->base); From patchwork Tue Jul 4 13:03:07 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: 699487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A89CFC001DB for ; Tue, 4 Jul 2023 13:03:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231294AbjGDNDh (ORCPT ); Tue, 4 Jul 2023 09:03:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231250AbjGDNDf (ORCPT ); Tue, 4 Jul 2023 09:03:35 -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 D6BCA10C1; Tue, 4 Jul 2023 06:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b+4f7WaVz93CxQTixXBbpwJ4dUujhqvFHXDk3vF3PyVY86a9hGpB1o8NevQzE5KA3M5QPoP56hnZVc1y+873Tv0fE3XYg144P8fn8tqfLIHV4rmFG3Cy9GOp2rub3BPs0enQv04FuJvyv6kdL7TXpkVUxbD1dMY2/h+qfUlxrLoTphFp+5tWzmZodkAVD9L4PtNfTwrEiqLFJDofQjRLlUmKLxQvS83bjeS+DmF94BCoqZpyB45fURPxoTOKTnu3y/bT3A+V1+5u2+FIQ6ufMjlMoSDge3xkWQw20Zxd9lC1+0Y+Sb8vA7DMUx6CAfGho6KpSceyv5U0Ku2ms6ErXw== 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=Ku/8bz1NMAVt6zr7o2BI0oqq7atDMIygT0R2tDWnzdU=; b=jE+hHDputEqQGEmwdo55UpJFiME50nYd1YkOKASipW9kGAIMlboi7lFmjNVyXei5c+dXNmAiDzLnk+meZGkVbDMwUew0MuXf8stuVtjd5ivBV+KAjpuma08z8L5gzFj6qX+Rysuovn3CKHv7lRKhlEGYYsFPXxIc7I0oJxAIP5C1CA4hyqDPNLlswbUlp1ENi6Qk+WK1yZIzgyQlTJuUgEdx+EYXFjUVFWd0tRgJ3IH83Lf3ofMQ80ffdcx10ZIexzK1IvccS0HXdPJ7Wq6qstjAGdZPuOqhSU9x8tbl7JnAP6MshzUkUpdnKpdAprWiXIRx4gHEtNwBt/QUafqn/w== 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=Ku/8bz1NMAVt6zr7o2BI0oqq7atDMIygT0R2tDWnzdU=; b=Qvg+cfrlIkf5wF4Br8B5qSECtDy1FIunDX9EQFBPzIs6y9ntxOJsZK/sNL7SwmHe43CZ2lIEj5VBMSeYJsO6SovOyfkWKV4FuNTbmPqdBWmrgR91iEcWNCawFDtbgwURqcpm6xHPcRi/o3dDQXWpCR78gHs1Gy7Qsy8LGjvKkd+norif43mCSXp1H9KGz3rMaIRx8WIuwsWkFVVTA3cVji9EOvQ1Bw6jCYsaTVHblv41zOokA0aBY+YyHjciOWgUFNeeTejYP1VPtl2PTt5Cqan6o8B3uJZCh3kZJxcDJGrrXAt88pEkTAmQ20sDF9ddCs9JVOK3V83fWoQzZOr/nA== 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:27 +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:27 +0000 From: Yangtao Li To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Sebastian Reichel Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] power: reset: msm: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:07 +0800 Message-Id: <20230704130309.16444-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> 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: 3cf2aeaf-48ab-4380-f467-08db7c8f0eaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SmpZQis59jGU8OGH0wE7GU5Vtsi2GGkLzdxCyx4UiiGiXk+LCeeVv7GKDCpk/QDxynt0AO63P8m7btWhD82A1R4Fs7a95xkEDkQntJPmBjlOkl9l5SZ6Cpa515GDByCI3JpQgO8epNT0GiOvhSbEizoXuunFNvpu6F4nJo8F+5xaHNKWZNhjsZvOUCHhLI4MfdNgYVvoe5ckiSP1w0wEavmJLKJIMNr1vZHl94tbxVSbzygCbbkzMWIFV4hMz5gcPmG5WuyAL7/B741tbrEN33un75p53Ec8GUuiLSMb1F8iLDQhpTicwCCjCQZQvuBm3eR1s+4ZRnHz/YWHLOynO4vWE38aobBqS8CRyLtu12/5IB2ZXYtqSogJVWY1BzeEWKdfaI6gv8Vrte4/DUBbWEa1jv5FgpuRZwcupfvj+r2BD7QumavUep8YsVebxjm6p7gn0f28VPkUVQYisuyWng7yngjyqjw4il8e5icdfT4rMlwGN+GZ/1irpWzRySj3phol/ar04wYGKDWukEyxAttZmRZ9hD40q2xci8TPmc7MV7YJD+MfFFNhklw5HqL5qCbSL56D5mLzBvdkd2A1e/aQtGp3Df3dBsImrO+M7vhvhNkPRcZSZbf7UaWfJElw 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: I80zqzOlZ/zyMUit6Bkzn15KYz6q8FERNrEJKQmH2WusO5zy+KTwzqwe1t6ugzYfMtsduVW5GHwktSOCCAuOAvFdcLwYsGvJyJnfmEjYKWBXrpGC+2jCZBji7IW7RnGoec6D5t/BhI22RpObf06Y0ohdTWimozqR/+FwNeZmaGgqRJHdboUgdaqixL89bQcYjAngvQy3AZHhEGwW1n9Bbij/B/OaooiS7/URXlZUTl9XSoEaIEhTFChQpY1CtjrRCmOn1jh1fCtDVgikGXu9uwthEMWJdN10QwBvE7MmDREVlvm8pFHSIv2XC/vVDYw3cGJx+iIZrcm/ZGV5IpORK929b4rh+NX+H4+2Zh3u0iCz3gdbRPT3AHZkx6lLJwTZiQdpgS3MgGJDGjVZt05CuUu7liuFd+UCzhs9OoCME5oOVVy/bWw9Fz6OO9wGT+9RQOhm9m0HpAXF/3+kdpZ/Zzx6i+SkGa0zRLW4RsnGBPpRwhO3+Q2G4cMtzRLsNmOJVxuGOua8+Lou/E9LlFPfwI1DfBtE4f/nYF8XyjH+DCJgedPJabEflKBCakFixi9bni5DnFBZcW1koX/C8dKXaYAotrf94yYmOOXO9IWfMkycdB9xKmrtZyEcH8NV3LIBQbzH/sTkNTQD7MMULRhfKTiZ8xjwIBde8YZNqhzgrpDab8je46CiGb6CC1yxEIGdMQ7emjtYTWR/1sQWt5RudLhLZtLheyRc2eJLRTMG0mNhFuaz7uPwXIkoKQgNd1Jn8QhQTu90sF7XOpV8PtFnc+VdE0Ully43ZBzyKizOpiwiETp6w1JGUfe0Cmw7MKktZoPKRwVNKCDINX48TFRosXOybmWeoUZ9CdRK8yNhwkCiXZMFvSGA4QFNdcT9a1gVZLVEunrN12EeywneZzP30VG9ppBl9UhtS5J9T8wfJ/we2i6oEOaGQYGAw0Vb8lDpjPD5YDjQUDO4m2B++s1+Ac0laORvDa0pUIssXBJb/859g2cll7DFomayPnE4deKS+rLiLC+hgWh9aRD3dwf4KulU6Ht17eJ8QCKQBXXvOjgcaVafHHReF4FCXdnjRSQ6jtwmxNRCnoWrQvE7CNoJxEt9tdv19EJhewNvfosi9aIO18kMSUM/nCjUIVIYHS1kVZ643w1mfTeffqetNZ3PPuv1AFPUvqZ/ewZMY/AIfVtEPolet972x4FVUtBBdaXp4AokgG3FoE1upc5J9ivt3VQFx59K8YQsJKBHi6Cgef9Z78yV/hFnJo5a2YkvoNyxpZmx40tB7BV+b2lZg79TLklOQZsiXwmmzFFyCzKTfwuEszsSt2km81UsvrAItyTT4cmfn4O+Jg8HwVGmGBpAU4PFSPVS2UARgQE0yE2yOYWK+GO9y2FOySMpoDK19Bs5x+UGdEtBx5QV4yIEDB2bKjoD85AzoNyLwFGU0H8Ta4z2lJVt+V/s2aYq7r0Wep0x2S6LrR8hIh38xrHtIrXkwk90wfNL6TPql/UFsz+Gi4jRO4Jtv3dkYjGtnSyPgwmkekyJMhicI/08dhfoMkSdx5LJXY9O2jLRNBVBKz+tCs475in4ji5EVrUQXxNiXF8p X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cf2aeaf-48ab-4380-f467-08db7c8f0eaa 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:27.3514 (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: l5rG+5aagQGVEVXam/s8pGzo3w1ol433X03RKPAR9j6rI6zPfAJ/jq0jb0CI2A+Lq7OoiU6OEg38ni9L0iHghQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/power/reset/msm-poweroff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/msm-poweroff.c b/drivers/power/reset/msm-poweroff.c index 0c439f83bf65..5921acc5c51d 100644 --- a/drivers/power/reset/msm-poweroff.c +++ b/drivers/power/reset/msm-poweroff.c @@ -36,10 +36,8 @@ static void do_msm_poweroff(void) static int msm_restart_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *mem; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - msm_ps_hold = devm_ioremap_resource(dev, mem); + msm_ps_hold = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(msm_ps_hold)) return PTR_ERR(msm_ps_hold); From patchwork Tue Jul 4 13:03:08 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: 699486 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51C74EB64D9 for ; Tue, 4 Jul 2023 13:03:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbjGDNDi (ORCPT ); Tue, 4 Jul 2023 09:03:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbjGDNDg (ORCPT ); Tue, 4 Jul 2023 09:03:36 -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 40D8D10D9; Tue, 4 Jul 2023 06:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eu+F3oqaUTG+l2LHiQtekIjTMSdgExR+CBZq5r+dl6pyI2L2N0WPBUj0Xk2yrpZAhBxybALgHODqH0mszjB6KGN4Y979wgNc/uOQmHjutxusSrMU3v770jbU4W84bCCNLk4a+xKuJHiH52ozIz2Ju6A5LR6lRLYTgozBs6e+YigH6goaJuSE2ZzWk/657s4FjL7Mtqx6i/xm4d4oWdPxtXkFG14Oa7z5/7QZ6i6ENT9EveegtvkhmUrY8rToucmfNsdgxvS8qX0cGKTDMNIzTHY38FXU1yYI/b9CufuKYQLlBoyr6tqb0ttBHHyv/C3yxBjhzIhz1uTz+MPChBHO+g== 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=MJJ5pMnb1fr2kULRAapmovW8e9ZPi/PWlNlldzHO8tM=; b=EuRORoa5nsJLmLivXPVbl4r7Fy82lYPjaCaFm1DQ3/hBzz7SB7o+r6rYYtNKRNuieokWNk3mxl20CFkD28c8VRtQkDzCMsQicPwsjDEjwN9+G/pH3APXyUx1iQpC9n87sov4XWKGVVm4ZqbHe8a7SPXsN8eaidzJf7jezKpaTZ81LVqZYlMi7qneCgcXfzAM4nJajoDu/5dxwbuJqVhiuzRoJlzHjxU3Xvh4ErEykI2vQtb+xTTNVxGfGIT6HCIP2ucicCWKtLIHpwbc9vqRjjzvK+G1NWyqMVe82/pg8DuQVokWsgMTa9T8IH11cHtxSUttdhEK3zDPbYnL78c43A== 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=MJJ5pMnb1fr2kULRAapmovW8e9ZPi/PWlNlldzHO8tM=; b=WRs5lefmUSzeCbWr7yBRH4WD17MA0YuecU5ka0CUb1aPNDa2nUrByuMBLa9L36yUvdJSndibOcZO2RZmjgnPAPqc2WjzSzIY9PKgjyHrYml8ncipKW6F+IGltppyA04r56wTAEqdrvTIaTLGqr3X1b9mufelkWsoVgE+bDnrRLND/iD+5/zkehAy8LcU8jlYCRaYJnDDdE5MaUIUfOCvIRmvTEMTQkMSF4C6VanogRv29KC6rpFpCBT2tFAFnV8IXCiX2OcHSNudkN05dGEub7CQ+1JGw3YpiT/XKo4mLFrueo4GNI65fwlEA7NmLVUAcViJCCya78DJ5C0MjvDExg== 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:29 +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:29 +0000 From: Yangtao Li To: Sebastian Reichel Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] power: reset: ocelot: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:08 +0800 Message-Id: <20230704130309.16444-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> 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: 098f6a32-5448-4aea-1880-08db7c8f0f9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E7B673vMNbxk98Mxzh3r9EyRCfa3doYlFjaXOUo3oqObW/LPeeGM0ToYq1BuJy7q2FN5567WahEwuDoQn4fzN34OOd5CNP7avBJ+q4+qYlVKbT4c77ZJSgFTgvMNqmfigozd0RIqQjBNjHOr8oOwjBawBRIm8+XivadvVA9x0XBAyzdOp1sUEmKaq+YIj720qRBFCGjTsqGSTJMxlrhuLjTUhOkSSDXIG42I58aUUyv9pDWbbZEaVX4GHmZ/h5dJ7Uo/Fw2bjekqHfcipPXrfXszPtKiIyOwVSPMaEpe4+Tdx8gIEWMOnpkdX9c3KwRDSQw43vC1nfXu7/0wG3jKxH8QejvB+MI0npYGW6wo8YX4EkgYE0G2ov7AfkcCMy6cTCBdiDcm+Wbkz/viqu/adBntK9cWDmWzd9fQkHLUmGIM1D7ANyqthH+dzvC7GLbyiyY2Ag0s+LiiHR4eTfJW7FHPaPzmPK5FjU+kRucrIcyuUM60DhYxEsOXMNQhJkA3G1DbMyKkkTXEX0D42+WnAUGQ606JBqLWhzgvWfoxJ3NZAM9LaGfdgDqAybZrRnIPAKIAMD19B2dIZ7Qc07AEJP6mhS4iM1kiDjqULGyL5o1deBjZdCw/yMR6dsuL8XGA 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)(6916009)(8936002)(5660300002)(41300700001)(86362001)(6486002)(6512007)(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: o0uIknqmzpXmikkw3kdPZ2LrM0imMjEWROE97m+mAfHDOrxlCSa6e1iaWlfeS51z9iWjtmvnabrnVHj2M9o6G/G6CBkc6Zo48scum/lviTUglU/+a2YMRUsU2q0TH+wROiHHZoOH6bza1zLGtYy6bTRpRt6itUvSdx2ZPYu9lz2hToZUr6ucYNHYUUMiCd2RXoXj3dU4upIxi3n/jikS102A65eu9iiwnYr8EYIEGGILpSsolJ/TC9FfqxQvgNE7XDnu58TFJFox8vqa2473MCb/CC2c/nqy6luIlGtkKcM1VY9IaRHFmrasB1xaoCxg7wfgBc8cKiQXXBS/NswkwEBxPuyESDcIn1nPSXbz2sI84K3s4Y5kjvC2aDc/k7WfsU5VQedonlztPrRtYv1yrGUz1Hgqgdfk7YO7KBG4estWSsKo6y4B4mMQDp78mbD8wNLnWnxq9CD3FomUaGbY5wtOtIM93rLi7/Bd7IhxKZQU6BkhPTVl2s3t2C5/3Tz16JfgUxXTxJQCB8CGtDCHskYQ+BCe3+tNYGXD2FjesJhuOxY/X8ZLnnp+22a2WcH23FpTaXcW32uQz8Oj7Cej9e1Gz9jVrFsDtEpU0sJxvqfMQ13WJOaE4wRp25ee2yGGjI6K/atdB/rgQEouhcCbmeXvXntDn9/iOa3nfldvrMEHXQwtzYinWtIUhnmTaDQdRXKm/hCUIud9/NVP2QtHiadbhbv5vVctK55K6expctTWFDt80Fut8kNSWPRyq2PaJDZZ5GzxMc/WIjLMl/bG/S5NLGCg01qUGv1tHgvma9uyzam5GLlfb5Hhshpg08I9vDNz7+AuxCyS4K9noSfhBKNApXvpO1ZQQi9SlHk/eStcslmSQXEjcNMhJ2UY0EcM0FyDt2OjvK7FK5JxP763bVM+W80tR+mY3CP3RYdI2yz8K3r+YwvdMLv3G/YvjPuAB3Ar9j/v/Je3IcvmBr9cvq0IvmL21G3K+12g6dVOuLe2aEPcJHSggOWfG20SHWCk0Rj+ymZIa8QQTvaH53Pu3RH35Vcp9IgdrmN9nBJxOt0yTNP9kucxo9fkQy5+kIKXGpFFZJYUxe/Wdno9dQt3Pjy0ZuHDyVSx6bqRdfpPUV3Dk+0kiseFJe/Rphkli0yiA+OOcReGgBLI5TJdDUZLRB8nSfyltH3jAmkN5y1w4f/jO/4kDiJxVyIQUUKesDxnpIzERnp5RXMuSPiaeT1dcOyCNtHzN7IKfD/PYwh21xgzhf9yroHbLKpRZg3CzpV2GyqPDAA9x5Ntf6wXTU9qd5ilqyas2V16JuWGI5XcUZgK89hDF5LabkowWnpBApNAs5E+5hFM8ypZnnlyo8S2tUi2kTTLIdel7v94h9PXcdVHsHwpUnoSwbz5ToB42dwaO/NmU826QUxEQlxRPYZ/Hf3sNLSfWKYBIY6vgXDot4zhw+DxN/YfRk/dAUc9gtapJVE1dPEmhfh5grX7Qu+dV81bpIZCsBn6wkpnhyLLLDurHNDMnvJgsIqS3ZqQ/w41tKhcOBmFGgUCsDj6v8KHXXo2bNLwEt500JXtj0KLg762dVZc7uiM2Hf5Ulcd/cxZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 098f6a32-5448-4aea-1880-08db7c8f0f9e 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:28.9478 (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: AFKaJhPLQrXift8vlKZVKNOBIWBmgb6jCoO+Duju5zFFmsPo63Iap2Vc/ndpPEuyPmsvFCHwNJZGsceJ6q6S1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/power/reset/ocelot-reset.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/power/reset/ocelot-reset.c b/drivers/power/reset/ocelot-reset.c index 8caa90cb58fc..031772a60b1a 100644 --- a/drivers/power/reset/ocelot-reset.c +++ b/drivers/power/reset/ocelot-reset.c @@ -69,8 +69,6 @@ static int ocelot_restart_handle(struct notifier_block *this, static int ocelot_reset_probe(struct platform_device *pdev) { struct ocelot_reset_context *ctx; - struct resource *res; - struct device *dev = &pdev->dev; int err; @@ -78,8 +76,7 @@ static int ocelot_reset_probe(struct platform_device *pdev) if (!ctx) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctx->base = devm_ioremap_resource(dev, res); + ctx->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ctx->base)) return PTR_ERR(ctx->base);