Message ID | 20230704130309.16444-4-frank.li@vivo.com |
---|---|
State | Accepted |
Commit | 808e964e302f4e7b2a84d9f87c7cfd2bdd62a4e5 |
Headers | show
Return-Path: <linux-pm-owner@vger.kernel.org> 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 <linux-pm@archiver.kernel.org>; Tue, 4 Jul 2023 13:03:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjGDNDg (ORCPT <rfc822;linux-pm@archiver.kernel.org>); 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 <rfc822;linux-pm@vger.kernel.org>); 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 <frank.li@vivo.com> To: Sebastian Reichel <sre@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, 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> 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: 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: 0fbaKSKFKLfpP6C1Ipy7p7fcFBPv49CGSc9AmHl11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QdCWUVGtdkmuG9ftVAEgC+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: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
[1/6] power: reset: at91-poweroff: Convert to devm_platform_ioremap_resource()
|
expand
|
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);
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/power/reset/gemini-poweroff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)