Message ID | 20230707040622.78174-17-frank.li@vivo.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) 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=iTwDZ1Y3; 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=MuSEbVII; 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 4Qy0HD4rjZz242j for <incoming@patchwork.ozlabs.org>; Fri, 7 Jul 2023 14:07:52 +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=UBrqz5C80xrM/ECeaXINFcgJdKIFuoNsavIZISHBU34=; b=iTwDZ1Y3tAzYLF S0Ebfevcw3Mg7tmMJSelVAV/264DFkO9CogaAYBRAI2p03QNhoOFNEdr0jeUSZtJUDxs5Q1Oy3OZk AqcDIgL18ubjshbJMu21xJ6/1F8psoRoTYgjSTnIcccUTBAHdRUWr2ZBXI025xMrY3uM8jMZm8oLD YzsE45d+fgtSJepmbFVnyoMewGrz5FiXp2waoTdQvQ2NQ3PJUdfwu606O0dRaH33rVycG2Jw6Wdew e69/a9f3NTJJjeo/PrEPmxeGi6+EvcsRgEAE0w+coRHlouU8NaX0Okn2BW2T+LGoX5UcrOy2TllAD QjnXfxLp+VL4lzJlIV/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHckf-003QIh-1r; Fri, 07 Jul 2023 04:07:25 +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 1qHckQ-003PgP-0I for linux-mtd@lists.infradead.org; Fri, 07 Jul 2023 04:07:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dqjy5b+JKBEJ2uMj0Yv26onCbsj0clz/yektES3ZlR/U5MRrTrnljXfeNccBZJG08JlPhjk/1Gau9yOBjpTGQ7oqBAXOmxJECe9Pb218efhB+EJmTrtuGgclysjn+1oLSI6oraTNbEuT4TASNfMrZ1fCgDkcjPSkj+vyl4a6GGWte+vluBuY1+ZAcn67ZkOaL00tqMUKbNzz52fa2NDJSw+ufZ7ZGj27LM9owZg2BsKmrUC+oPbS6LTrB5ABJIPiWKwy4GP2RdRORd0u0D3WplEY8owXR9f8YCsrf1WUPBzLkZ90SCwn5+LYoSAtH8Bo8oPHiZcZuNY6k7UBXTvP2w== 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=Oiux6bfSStl3D4931E8/30VqNTqHrgttlUkj9MFjPTE=; b=X5s8LXvP1vG1nLY8k292kgiMz8PoeisB0eXw39dQsHimdRkexmm7oFF/nDyhAbQr86m3al6BMTYCUMKmKCckOYsY3bWfDHrwMsGlONn0KZGsmIsqwY2zjBPONAdzwG7rYJPy75P3ixvsE4MCYlErEpfMd4IyFcUi5eAlxbhf3y+emrihIVmBxEduUKo04lC9BiRE4wC/cP2LfCfW/GtjIp9ShwHraWYrX7S4QQzDv+P7tXeEMlKeAJNgFPlxKEwXyL7uHmE4oloo+zOM+dWf9++nkng7FfhQjEJ3UYUxSY+3CWxoZcPuKoALnQUcI1ZSbcc15fyDexNi2oVtPyxCvQ== 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=Oiux6bfSStl3D4931E8/30VqNTqHrgttlUkj9MFjPTE=; b=MuSEbVIIngkvCxYUNXZelmcV7y5/hZYXoM8tHg5Ue2kXLD8Fbp5zae6t67NbUW1H5kLi3KP32LGvIRI4DQ20QaVhzGqiPeWCt1Fb2Ix+0F2MSpuNmQqrtnzvoQCZztegcZBfLdbsBNVKH+R+vgvCoCyCaCXPdFBO/GaTZPQO33CV2OQivkJagInzGN1Y2mU/vXHVNLNHVqaQiau5sl9BVsR7dtyQ10w1Q+4ygHvVTF1p8fG3OLKF+tGaXIcE/6zoePiBFLKG2ne5YZqyJnlbinxmRtBIvPtY6xZn4WJzlPQgngF+5rgOIM1z/Aq5LzOX8HvbrVQhgpYJJhC3k9M6pQ== 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:07:05 +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:07:05 +0000 From: Yangtao Li <frank.li@vivo.com> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/18] mtd: spear_smi: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 12:06:21 +0800 Message-Id: <20230707040622.78174-17-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: 340b5357-43d7-4f68-04e7-08db7e9f9fb6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mj9xTZ1L9xsSKdOBO9gf4dx6AnsSSr9W8tZy79MakTJ7gP57iLIg04rMKtoARW3qwThxRvLDP67A5fausi4p87faPGFKw+ZQ5437wmA0zWxTwW/yMzmN7NxfUMzNSFD/kMwkPDQLFHIqyo80dYRITSRCHd86e9Y0+DASET28/jy/cKbIpchrGME8ZL7INqKp0MG2ZvYrtq83/YnBBpLvx2ql/jfWUNPHODkVventbtrJ/KJcJ/gC82M7sdYSQXFhhDLIIwrv3mxPKgCTu4b2fmgZMT0vGyt7sGrDFMu5Ss9KapdHUea+Sczbg2S1vLaJPDG6Yc/E6SskLVLQLbxPACRjj525GCK25gN38bojoasll1LvhyVtbPqKpuheLbVrh+n/ocx24W6gHEpVJvxH2AdOaNIcYxUNHAJj5tcBigIMQo6FNNxwn0SitT78qcLeo2Od3GVTwAgjgO+anRBaUcSZUPYxmfoFjMm5HcNeY2o2aGI6IFt2zly4qsfsUVifNhQN1NncIyC1M3Ot5/eReeSJy7MF/xxQjesf+1N6EgIDidYzs6qL/Dzr5vdKrKW00+JIaIcxwcwCGe/3XCOxwMd5Mwjx404hUaIeetm08PVBw7z5ccT5P9vqJyplgZG3 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: 8WIUIDg7aJGW4Xc9RCg2TPQoNkWbTrqom/eJGvWFpTzawqCSMcedF5l/lA7ubgNwT3MNov5TvvROvdKXB3Pj8fh++sWXEqG6mdRrgQKDRmpn9moG45tRhiLq5P2LyG9pqdPQHXBKkbXP8iM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iFft4p9XXd5rIBM7ZRtrKhoEuiIIeU6ngwfk7y1321wC+JId1ZBWcXNQ85Bvjp3UkZJYmpJj7Qd8KoGxDROWrw/JW679qasBscFAm1yFM6Yz7Zo6PS4Idw90Wu+eb5N3wI3Y3Jg1lO5QqEzk3c4GysJDCxKft5b9OhJcNjJ3Nj4i9vTY5tVIYAi39xpnqevcjep4KHC/BEqTU4/U6/EZR5jFGQ08+/wwhC54OFE0yb8sayTVrgiDcKGHtE2ynNe4pggDtmXMfptXPQiu11uAeF5EJgD3z6tfMPTsO1j15gpIguNO8oHmFgZzDbqRlw+XunyKSbAf+eVDZtrHn3S8pgBiAkcnQyt8bLsNHjiYfsrXdDCgfkvFbea/yOjZckr/NCaXmU3Y X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 340b5357-43d7-4f68-04e7-08db7e9f9fb6 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:07:04.9453 (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: ZoSDHhg3U5GuZITXkYdRmbPXk9D8s3zID/eR8xdSo2P1qI0UqhBiOAnBy0Nz2O7+WCt3jtm4+S1J1tv2La6nFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5470 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_210710_159333_D48DA75D X-CRM114-Status: GOOD ( 10.15 ) 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: Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/mtd/devices/spear_smi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index cc17133be297..93bca5225116 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c @@ -9 [...] 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 <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[01/18] mtd: rawnand: sunxi: Use devm_platform_get_and_ioremap_resource()
|
expand
|
On Fri, 2023-07-07 at 04:06:21 UTC, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index cc17133be297..93bca5225116 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c @@ -937,7 +937,6 @@ static int spear_smi_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct spear_smi_plat_data *pdata = NULL; struct spear_smi *dev; - struct resource *smi_base; int irq, ret = 0; int i; @@ -975,9 +974,7 @@ static int spear_smi_probe(struct platform_device *pdev) goto err; } - smi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - dev->io_base = devm_ioremap_resource(&pdev->dev, smi_base); + dev->io_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dev->io_base)) { ret = PTR_ERR(dev->io_base); goto err;
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/mtd/devices/spear_smi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)