From patchwork Thu Jul 6 11:39:36 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: 700316 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 B5185EB64DD for ; Thu, 6 Jul 2023 11:40:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232371AbjGFLkC (ORCPT ); Thu, 6 Jul 2023 07:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjGFLkB (ORCPT ); Thu, 6 Jul 2023 07:40:01 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69753DB; Thu, 6 Jul 2023 04:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=imWndILWou4U1SuuooIH9K6JiovRv0a7zANoTPB+Kg66ewMClS1BQyRZl7A1v2u+x56kldEoQ5fGeDXzTm+tV+hs0npRU+NGAfgAR2QiZDV54J/vumjfpo2pz0gBKDHSZDuDIM5FxB0Z7RCtkQoyCO2d5bQp/wikC3b55yHaUGBwvWBP8y3Chdz/odZ9jzllX8Gy37nP9VxR0rsX+V8D1m3hvRaPrKcoaa6K2P4F+gPnnjv3p73H9AZsJkScoSYojT2LjfMN5MhvPtBULfkHifRTJdPjPrZrKu2Pv5n+nyPqLxUjaDVBgJtTNNNH5de4zwxtMsWUDfK7sqk+Cd+tyg== 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=JMp8IXemTEd7C932HIINWu+QIi0l6BOly5jVd490whg=; b=GsOV9IiQMt4Ziw8s5RzCPFmP4rFmj/ptSPVUIRvVfilxWIGkFo3DK5SGCL3lUCWbaIBzlPrulThtKmvs6R3E57J/dF+RSyxga6y6kD497HatBrJZsaBEfh+xic/liRHwk7Z0xF8u1vaPOq1BT8OyDPbK9LlYrwFRsvVumqTz3U/LBf05ucS9jLxkEgLRHsYLzotR9QHJ1O0pr0MwC6oHxEKw0tHgTN1oFUZxLzTg4QRX27062+L3ctEoMHZa7VJHm4OxL7QYf0FqZyhG9S3Um0OezP4ECHFta7orcd2bztiAecjBU5WOH6+q4DxdpShyVxLowkdtbrLo/SVZV5TW0g== 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=JMp8IXemTEd7C932HIINWu+QIi0l6BOly5jVd490whg=; b=Ru2UavtzGi35GR4n2sVx8tUB+j0Q9+0Mp/dGE60WgGiawzI0AzRPOMvvQ6QbFjoLS8KuvH8CBz7vsKJZm9bCqoaf1YsfpIG8c4DSItgxwd5xv6YyVk0oEMqcr+E2UKKAunahmwEVC1lFpyJpzaqZAPitYyopBMl5+W0ul9NIvcQEdvDEa8Y6HAT3+ooLnYxMcT+c1Uf3gRSinZVSa81hN8pc0vJ7D4u6TFn21Gjr9QqHa5rFHkpPbVh6IR0qtIKHVkX+wLFRF/f9C6xvc8pwasQ5Zb6ZARz8uHh5JnICln6NQIBzLA7ykGNZ+bgRO0b6i4imPGSLGnPCGOpL9JQI5A== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:55 +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.016; Thu, 6 Jul 2023 11:39:54 +0000 From: Yangtao Li To: Lee Jones , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] mfd: exynos-lpass: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:36 +0800 Message-Id: <20230706113939.1178-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cffa873-6943-496f-b97a-08db7e15b7d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ul7YJJzYfX28CCVyI4M/UFp4u5TOJZ3njU2tDAszHvhpfFApsHe19JtAuZAU9dIKuE5Z+ID1vV7H83qhbdO9nSU8WZAbFTXYDO/y32LdqghNIytehRhPpPTYO6as0P3d5ne66nBobsZCaX4X/zXeYhdpS4sbZLvnkmuEZQorUUPl7WUZ/L05J6Yr1QEP3L0dTGIiCeIX5n23ICG03vMcKmSq0pkD/KDttmOR+Qb5N5fnS5hw7NCKMESAqDn9lzqFt9wUPB5exQSQRe+jilWQk5Eo0eMx5YFoDlHSTI0D7OZ7B/DoiJawkTzNS+cOu9LuHuyF4RG2ZEF0uFzr6fB0LYrqZEIZvJTbwvIpHwjCfbDf6tH/R0RzQ0kLFSaNZqwGP5s/siSTHqwoqng3QGifq4Es5+mSgxvdyhB5i9cn9g+7NIJrqREGK3LbCldSeXlzb7slRd7qXiEk9oYCIVKCLOYVEfQ6QNBv8sQm5PGixLteFuhITGv6/PnEkpIVXuZl0xGcnvJPjMnlZa3RiNm7pmtO3m+rGB3lkJIgghZzbWGTRu8gbWJf890lRSmhKJOScjfTCKmlTpje6uVtaB+HpsqR+ZzZbKeBG3xRyzLeiFc5CNoyYFqm4G/fz4ZmvBFG 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)(136003)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tnmPv56IOs1FIZC7IFaKSlA1bseWCPgVrW8VYr4tc0A2MCgPwbMvwmQsZ7rCSL8XG4l0aNw9eG/ZEFtiZCTwg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mKlQjCQjDRQ5fisFPt8fHkDp/hrfrU7Fague8Db/vTUuOF+XgoiAsl0qMX146aURCrsT1no1lilOZTCXFMBC7uiD/6UEMLR3A27Kx4pyfagaW1Zs1H9Kod0O2vWb5jmuG7NlqBn8dVmYMjEstjKucJsPQcqUMWtmRfTiIT5XUFfqXDnbrwccohpUaN9t05L0qAlhxF6g4wwSLssphMHVRQoUDvSdxAbSgFbuFvBCU9lsta/Ksi7+ReugIfKuPsCJxHcV9/okJ1Qs0Q6rqCh7XrwSrJjDGVIgOf4Lvkp2mp+MUWRvqQUk73kwigy2tTqxQlKNYtgpMPcvpPfs25kpulHhzSJYAC8AhxotzNEUwroHSVV6qgkyC+FkJQdt76u7lMOO+y+J59y302SdjD14UztjNmisFFhU5I9aWIHumTnPzhD8Q8ObCrn7UW3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cffa873-6943-496f-b97a-08db7e15b7d3 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:54.8832 (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: mGU5gyeLnIqyzaQjRzSijphl3waVtbJF8OGsDHfMZrH3pNgvZsAhFLNyUkvFyEY78bsTz6VRZ23+Ah7SvIPDCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/exynos-lpass.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 166cd21088cd..1506d8d352b1 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct exynos_lpass *lpass; void __iomem *base_top; - struct resource *res; lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL); if (!lpass) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base_top = devm_ioremap_resource(dev, res); + base_top = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base_top)) return PTR_ERR(base_top);