Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31401725rwd; Thu, 6 Jul 2023 21:47:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlGr4VzR3zH2BkGyKrgquRxqsd6dufefev573Q71Devx5wwfXcSZljDfTsfI4Az3yqzqzdH8 X-Received: by 2002:a05:6a20:8e27:b0:12c:55:b183 with SMTP id y39-20020a056a208e2700b0012c0055b183mr4380465pzj.55.1688705225473; Thu, 06 Jul 2023 21:47:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688705225; cv=pass; d=google.com; s=arc-20160816; b=Uu5zsylBkboAINSCnDaG1NITnWXMvORkgTbqLBiGszk7IwVQ+rqwFRa47GP3v1ccjC hvFhHCBIpWSLg3aC7SV3r30rEwz3mdl2a5lAnjSKPgrMgZD26IBCt9enw28oGSDQrinY TwADFhsnrLNkJtrPqQqIM7MWgWZ4fmDgdahFgtIgsu4urGEc1PvkwVkbVGNhtGnWdc6f RazsXdi4Xd7VlW1mBPujO05sN6OEAOKGgLBmsjqw36qUClHuuLBcYjWXbPFCW4a7TZkX zfUjedEMzwHHKYLZrhtx6qK57sDc9VP6+JCCfadR8e/4u1NzsMudyXjqNF7a70dlWs2h 50Hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2q2+f3UaUtrv39e+e3MvLdBDED5EJrbT8+Jgrx1WuyQ=; fh=8f+RigqA3RDIfyiHO7E2xCSKOVNps5vvbw9cGySTQF8=; b=is9q0xKzztxomEcFfHiOmFydgnuaxDdGY9Hm0oYUNb4i9g78taA54SenmKu+0V6PWW wXNZ7vO57hABebEpDKAn5ixnNlTVi42lrCb6aMH2uVcNd/wL7b9ZxkVoJzIjEUmtZ+X7 FBomjZh/Y4EOvnaDCE4eIM2bDNnj4TxQ22ATtjA4Lhdg3v11juETQVDbfpD27xHPr8Yw 4Nby9Gtu6If/cHQO2fsLNaEQWItdkWfnycqmoWsrwdDSP9ipyIeO4KOe+ldOuF33dqcM 2YxRJe4K1ekk13BtZ5nJrr/bNYJLo8fwtD1QTK/VBLEtYu/vC2IqoS89jHHyx2Fywnwi 5emQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Bp+IGgls; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca23-20020a056a00419700b0066a48cbde7asi2887252pfb.190.2023.07.06.21.46.51; Thu, 06 Jul 2023 21:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Bp+IGgls; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232380AbjGGEIh (ORCPT + 99 others); Fri, 7 Jul 2023 00:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbjGGEH5 (ORCPT ); Fri, 7 Jul 2023 00:07:57 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2099.outbound.protection.outlook.com [40.107.215.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6948A2706 for ; Thu, 6 Jul 2023 21:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ax3CyInYUVpNh1QUaQs+4P9aD6+UtlI09xGxLIMOCsQ57b6BQYc+xK9NCKvqFVxNloTG4TibI4VsUDy4T8UY6sTDOL/kMsK5Xlww5U6dverwzulY1GfGUBnvrqLVwE/Us76X8mpUiesTOdKOaI1BIUn8p/loRO3AA2v34uhwjpG3llLmSAlTiWnbNqGKw9eLZv2sBrTi7TuCm0bZ6zxrrnfI6KsLAM8/mgQbf3kYBC2HhY716roYsyoqPNUaJsAdPjeDHjmVxxB7/9DnRzzb7R1DtBKyF+R93Hds7MX/77xXiVrlL6o4gG5WZNsxF/oi29/kBZgFESorHmfBYIMGWw== 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=2q2+f3UaUtrv39e+e3MvLdBDED5EJrbT8+Jgrx1WuyQ=; b=iq0GEOI7GtIG0Mff5+FBHxGmWyueKig/3J5nJk/8mQkg9kFD7HolrSBCg7WrDQoYkjsWNJayoMGIqVWkAUR+RiJnWYe3jTjnGFpCH0sVzyJooFKGwZMa6mWcENeVqkVDCcB6LWj7MKbngs85pBsuPk9XDS9yGHsUx/NrFu0fCkPQ2e0zukKHYKGJpTiAd2MPhJ+uMUlIhgKfbWk8cYXTvLntN4TyHClNFj7B7WOay0NVOIRiaA62HLdfohJhn5cmFPhBpuutc01npbRHClKl5oNYbLQKLXXtsPLb9A671u+Bt2RiAwx0OrJlvlWcUcOpRriG4c4sdxr+pkFAK3HPTg== 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=2q2+f3UaUtrv39e+e3MvLdBDED5EJrbT8+Jgrx1WuyQ=; b=Bp+IGglsMA91j6hCJiKFP2p+QiavofrEQ4Hg7zjasgkGjuzCS0d2Ug4GkaQSiry+56Ar9yvywzUlw8llaZO5qD9Hiw29B42lG4mQb8xgm5dPh6Joa9arWCja+2WrXaeonLwz9OsLtjKQEu8r8tfk2y1oePpiXWbBfZUqbTdWpptR4ySLQIVvYYMC2Wolqbw4U10QtcN5+3c0sjWRIzEl0NnOIW+FjHepOkfyeA3FA2zMN0k4xHi1oAHO3KsdWK+92rHER+I9oBdB7FL/HWM9Wf1JuUpJCQMwQvop6DvV9ux+CsOUyn2yqtCHOmYh8GOpTngo4/02GyYuvYYE+KEyeA== 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:52 +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:52 +0000 From: Yangtao Li To: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/18] mtd: rawnand: atmel: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 12:06:14 +0800 Message-Id: <20230707040622.78174-10-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 0dd4481e-b5c3-45c2-5278-08db7e9f9870 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d1uj8fa7Xr3yQ5L/HzmNsiBywlz+cd36XsMfdle9nSCFbPyjDxXaLQBlKbNp01YhVZ5pIwOEbTSMJNehT2QO4wrYBkPOM+1rf7HuktxXgDZ1kD8iPeE/JFMcFtael8wapSistgpk3N613twGUprRZy+2ZysMGQEsOwetlUaCM7JvQL2eNnFmeFtQU5qbzEVK1e++WfJc35bU9A8BTfJZ/m0oi+whaW567XddmQHVJSJquvWGnKGRcFh8H8+JFn1A73ZPNtXxF4oErqPzCcgaKhYxS0amWqrKc5Mv0UeOH+kUY7wOnJ+mA8xf2hAaXtujnwdYA6HxCNNHEfbeaceB8hBEFBQNH+jYavm6A55CE4j97z6LD/ofKAuYh9aOH1r93GuNUfSdD4bXfj79Q8ihdngltKVcK/1sIPdPW6lPYeGXdz6xAzykdwIiAz+xP9NfPLtKizzVEbdAE61aP3Hqd6afNntMuC2c/y1WPRsOO1XMnWJ87n1OP17Jb60rzuHl5ktHX0RUq+2sQfmfLnpv/jVpg1jMdzpBacksx0+P1Ah1cps46xBaXY7ZQcVOvdVX+nIpXlXG9TOd34GcxJ8tnjH7MgMVhW9bjxp+BfVTaO3718W0M4zTRyWI7ACO3DzH 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)(7416002)(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: =?us-ascii?Q?185zHx+9n97puVq94Czeth9zzrevhpRC5JubBrD9IE9GWkFMrg4ubDIrQiKJ?= =?us-ascii?Q?Pm29lA0oHafWHAHGqzHE8WbLYQHjqeeqpvc7bn6D5HZcg8bbYppw2g0AT53m?= =?us-ascii?Q?kRdHym+RMTw2lhdlAR+KIDiQpn7CVHjFdOfs4V77G2+Qvhj5JHqqvGzHiC3/?= =?us-ascii?Q?QcBnuWptYrl1cqaKCs8XJhhUKuj/mBQHf8+dJt9SJUdW0NEmIcwV2ookBF2+?= =?us-ascii?Q?Z2Csw4K+Cv/94J08SPu2En7jIMxWLEcdl7uA+4A05VPL2/lF2/j+Lxb1Lm0R?= =?us-ascii?Q?T2f3gSp/hJPlwaqEDyPGujQ3mKFQmL4ch/k89IIQjzKhrhMiu/jyxlogG/8K?= =?us-ascii?Q?4DdQ6oZUAkDYeKv/tlgLgrRfVxfKsw8ZTsBzhtfQMBZTMQ9va+VZGr6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aMS2r1+Y9uTKA+blF8z4KiOlaYbFDHUV/mUxIml3T?= =?us-ascii?Q?yYQczO7EOVgnbP2SObMID3nK/nsVhmpFR9sPC6duqY0kVY20qEHodLR1Jhzu?= =?us-ascii?Q?XL5/6br6zsGe1B7fIrpzwsDfQQ0HFEoL7hFtD4yS/Iuv/zIxC5Vkgr71p2me?= =?us-ascii?Q?3coDBpTNdlp+YckHlFut3YQcoc2WoVLFtOJpCxVmemWKOt1TzEx/oTeYup2L?= =?us-ascii?Q?ZklhBetQ3lhPWjelGkvMPqOveBeZ+yx5O7+6fmSPfsRj2+GJfQw5zmsG7FqC?= =?us-ascii?Q?+DFsI5Hk5pL3w7YxkLaziT33+n37Zjs0H8XwFZW5?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0dd4481e-b5c3-45c2-5278-08db7e9f9870 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:52.7549 (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: C9izdOpqDKAb/esxGMHs7FGQte1KimDJHa4kw3Px6HR2eC1YjTw2K1uCWOnerWJDRCqSCeLMmablsswPfhiZtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5470 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/atmel/nand-controller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index 81e3d682a8cd..3f494f7c7ecb 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -1791,8 +1791,7 @@ atmel_nand_controller_legacy_add_nands(struct atmel_nand_controller *nc) nand->numcs = 1; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - nand->cs[0].io.virt = devm_ioremap_resource(dev, res); + nand->cs[0].io.virt = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(nand->cs[0].io.virt)) return PTR_ERR(nand->cs[0].io.virt); -- 2.39.0