From patchwork Fri Jul 7 04:06:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 1804569 X-Patchwork-Delegate: miquel.raynal@bootlin.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pIzEkSAS; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=vivo.com header.i=@vivo.com header.a=rsa-sha256 header.s=selector2 header.b=R7lFxEbB; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qy0Gz1g3Lz242W for ; Fri, 7 Jul 2023 14:07:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=INP7y5hSQCxDpXl/86aNEvvznmeRBGgIKzbaxhiTU9U=; b=pIzEkSAS4C+C7p s9xg5Q/2lIP6gFhwzvYzjXZpzdg/fkYATTvo6I4cQiz87UbZb0Chpgir7f6Um+BAzPMEoyspGGa7p Jhn3rPl2LbGIcc3aJwBMMSvUzBhej9WseJM8nKaFbKsnquvahCligBW924PyxczM1zO1NGdFsc11B jCwO5ZLxMG29ZUqswcjMXeDOln7VN6HV0mwNpirjbUwzpIcAmGB4QMiWNZl9puqVrDUbwbajNzjOk ou+mnUL80BYRWF0nKcbv5XV0HuXqzvsLdX4zGfR65AK0P1q6cR/64Alkb2uQefIoDAJWNOYmvzVTx +5b96TRtJhpftCql2MAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHckH-003Ppy-0x; Fri, 07 Jul 2023 04:07:01 +0000 Received: from mail-tyzapc01on20713.outbound.protection.outlook.com ([2a01:111:f403:704b::713] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHckD-003PgP-1z; Fri, 07 Jul 2023 04:06:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EdhbN3fS2E5q6N5XFW5tNpxBzsAVlVVaDDeUOMN5Lh9u4diqSnl74RyDz/8+JPNNqsdIGYEFAlrla0amD+2OXubfLidNbHIphwTlBKF8L8mvGmpyGv8DobKFlkZcO1uXlIslYfTPXX7vzFDhBtgV0lf8cgB7mSR1ieFo0x8tvumZHx9BwwC2b2Joz7qyLSNfNW2jJm5CCJ+m5Chae1Gz2AZVsKfEjZXn7EeYuzpanOu65VINlf3DA+1xfVaO5iIEGipQnkbKZDI5RvmpPPUyaMLsqYPKtAEblEKYy4XSGr0d75Vvd7c7VqrAXL8BQTH2c+ozmr2KMH0psi87x4dy6g== 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=sgm7eE2bmKEI5fpeOmzp4sqjc2lZD0DlhNw0jAUyOzI=; b=NrXjW1ShELyOlghPggHOn2cpSrXnM2AdlMyPScXiUefY83ucZsDEP+RaddgMpMtudSH896um9yKVEGWnNBIA3rREQxXPGkTjAzhrHQTVjCT/gUPjjvApctr3BQ1Vn1D03z07ybvdf5wiXrvNS80HhAqTWvpVhYiWZUrldzlK/hMa1ZekeW1X/hUcsmLpI6u46NjzD48CJqLZVrHTqJjGb2nhzTBMJ2zE0UHet3e+eH+vJm0z0kvRNaFpkmHhR4ejOy0LtCj7fRnJJeEOHP98XKDewTMyO4yNZglHsUmI45OcfOebyYrfbKOfLvjZvC6b4AU5IK+w4RpjWw0Pqm7FvA== 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=sgm7eE2bmKEI5fpeOmzp4sqjc2lZD0DlhNw0jAUyOzI=; b=R7lFxEbBuTCjdyuYXzSPThVlDoXzcQQchCxW1Q+ZyEc8UTyvb7cTvQuK1Qve0nr6gqQIzV5CiQ0hZlHrm3h+MJKvbNiR0Xww3sade/fz494lDoNzR4ddcDGU1Qo+dyq8oWShkP1mB7tZTg/g3f0yQi+qvYiPA8Z3JA0gwtkXJ/Jn22JKnLNGgdBUTvf/+JIkzBNl36dHmIBHp9OD27bCMZAlPsFwboB0J9AxNfpLv//fKKBNbwIQYxG40Pk9GxnGuqMfSoIOTiB93EN45qaZPlVinx13k1qxOW/QnbUx2BkkZSAYx1hGM0uWITqZBnJw7GyQsFDaWrpKHmFVRyGk1A== 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 TY0PR06MB5470.apcprd06.prod.outlook.com (2603:1096:400:264::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 04:06:46 +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.025; Fri, 7 Jul 2023 04:06:46 +0000 From: Yangtao Li To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Vladimir Zapolskiy Cc: Yangtao Li , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/18] mtd: rawnand: lpc32xx_mlc: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 12:06:11 +0800 Message-Id: <20230707040622.78174-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707040622.78174-1-frank.li@vivo.com> References: <20230707040622.78174-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0112.apcprd01.prod.exchangelabs.com (2603:1096:4:40::16) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5470:EE_ X-MS-Office365-Filtering-Correlation-Id: 615bddec-fd8e-4f6a-4865-08db7e9f94cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NLSpasnDCy2t3lQ8+0S8/w2PHH+UjcNH1dT+HwaEbm2gUSMjtwc0WW068wkUAY+3KrpZfw+aWvrFo5lJMGdL9RxFgZalOq3/LQVHCLcZRSSfxPnp2bF8fTcxv6w1JfyBIdyV85MqnA6Ya8dj/jcrSHTzcKZQVPn2VdAf7oZIbV4WxkcIpYcSwraaDzBw1ITaFVRypi2cKQica4T025pDU0yaAwgurAK6ceOb45QOGvO+h8QVQqvlT75UprM1PVx0b94fB9SN+ZUHxIOIX9rC8niB8LHUjn9uztEVdSj/ln0aQ6i6NPut2fPjaLWV8dLPzgEtZLupyL/RIwVMbiPoelkWqxGMG6qcPs2kqnIkOMNWvA/K19eULr0asO1ttnr263WYuAIfB+D+G/zLV8B21lH+cHnhvByBDa4dmDjfVD4NSTSY/5/h2vbo9Qhe9O3l+tLcJQ+nWdLGghK5tOZ7OTKSqwsk6I0D9QraP2jHGiH/rIe9As0rXNCAADh03SJIS30iT//2AM3N9o9WRxI1U12Q18KFtqdIqrdtE3cAcp0KclT40sl5/mQ08wmPK5LN+UmK0N3avHyCEzMFOYQaneh4brXUoNz73N/+HaxqaYEsx8Ox3skvEyAi4LX1SSsW 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)(376002)(396003)(346002)(39860400002)(136003)(366004)(451199021)(478600001)(6486002)(52116002)(6666004)(110136005)(26005)(186003)(6506007)(1076003)(6512007)(2906002)(4744005)(316002)(4326008)(41300700001)(66946007)(66476007)(8936002)(5660300002)(8676002)(66556008)(38350700002)(38100700002)(86362001)(36756003)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D8SnOpo4kQqf0aNCirXSU7R5dniL1myJIYG/sxzgvuxKfx/qPTBokbb2Y6PeCqp0wtxjd5Q0EPaAQEBytqTGLjGqz+TuZNR4H1TMj54/CRu88uqOFw2duwmXgH7dPcsfti83CIATtoXnmjNY3+7UgN+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eUHMgtlAGJGvi6Nh8v7WtefkERVx9ClV2NHv/rabYpM0jGC2vWb3iGNFA3pZ7I49S6ofLqs8CSzvSB2hOnfUKm9LzzoEc+YclRszb4XR0t+2gJa7JSgpZ5dRMyMYd0CmP5yJg3Yv18LcB57fcvwBAzeHWap7UZsxomSragooeeC7PGXxUs+MQYfoBqU9jt9RFkWOs8UcR2YAIqXpU1z5EcUU+4XpcSyrpQLjiE+bw0JYu8MKcrXF2EcPnD3brXomZ3UeCr+PEU5A4QY31qbxUob46OORE1Ipfd0Gh2inX6yW7fFfTnOKv4BXzH9JdjE6OTaxm5Az6gALuloEVpqG585rYYMT0xHu92kVARlpnJ8tQQXpxF X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 615bddec-fd8e-4f6a-4865-08db7e9f94cc X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 04:06:46.7237 (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: zeZuty42X5GDQMdNttLnt6NU5nrllTEUUOuRGsQp+m5jQPGKF1cDPd/75P53MJxrqDekrE+jGxFRqvu0lEeO3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5470 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_210657_675845_CF30DB05 X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/mtd/nand/raw/lpc32xx_mlc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/mtd/nand/raw/lpc32xx_mlc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/lpc32xx_mlc.c b/drivers/mtd/nand/raw/lpc32xx_mlc.c index b3136ae6f4e9..488fd452611a 100644 --- a/drivers/mtd/nand/raw/lpc32xx_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_mlc.c @@ -695,8 +695,7 @@ static int lpc32xx_nand_probe(struct platform_device *pdev) host->pdev = pdev; - rc = platform_get_resource(pdev, IORESOURCE_MEM, 0); - host->io_base = devm_ioremap_resource(&pdev->dev, rc); + host->io_base = devm_platform_get_and_ioremap_resource(pdev, 0, &rc); if (IS_ERR(host->io_base)) return PTR_ERR(host->io_base);