Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31389625rwd; Thu, 6 Jul 2023 21:32:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDj3N32JvjcTqAvFsmQSTn78XsXaWvgsORse0BbjHn6XNJ4I8eFKkw58WRBiQXijZA4Ts8 X-Received: by 2002:a05:622a:345:b0:403:2fc6:e7fe with SMTP id r5-20020a05622a034500b004032fc6e7femr4627020qtw.65.1688704356718; Thu, 06 Jul 2023 21:32:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688704356; cv=pass; d=google.com; s=arc-20160816; b=u7D2STRXEFWfY1ObIS72OZ7ABTRb4olabcmuDmUBhMUnOAsXbHNm5twNx6erSL7rUw ZwQbCuk77qVsWt+8zkZTZOcbXW1USSjEVMCIi0mGfXOynJXVEtJORkwqpLecASPeWT8a +M6rjl2qca/as5aSJ9/1TiAvdbj2pZ+OnWtT/iTESyv8HQ9Sg92sL0R+zJjWFdyGhpps 886FHO6p3Xn/V22Taw7t+Q35iGd+q/lukCW4sxrbijfGC1oWM6g4AOjiq+m0og59GHQi QELzZTrqfgXzklkSJUhKSPNsQN48V0+U9la8uCD8BDX+AXZ3eI7OPHQJzs3v/njBHnls PehA== 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=oKvDbD2UhnuQuWo1K6WXRj7t6N4tYLBRnZSfVSh4zDE=; fh=V/t4HE0MWlZFsCBdV9dmci/qx8dk5JuPSODu2Cp0woY=; b=bw3oG57xFsgm3+Hig+DeYiqAQDXfoFBy5e187mjIFQ5Xu2l8xMW4jRq//e/qEJBJ0Y 5ydhtfStAtqIoVQl6iQwVIIBbXi/3SmLWjvouxw/LIMbITBx5u6Z5HvAdqft75dxOQ0r iF8biRXIC7feFOnjtj53qTjN9PlY3l08v3WAcnJrVjKBV5levQO+lQIOZRotrz6ZqleZ afIZWSeNel0mne1K4MnvfV/IRvHJaHkZ6fx/NI4AW9Cd5fnaPR9z913z/uVh95HgHJnj W0OyL9ugk4fN2BuS2jYexARB5e1K9M3YAvU7BY4i9bSjmJM5NrWtzqGPolkFI7ZjEto4 j5yQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=FASkjbtn; 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 j71-20020a63804a000000b0053b8f80c63dsi3043739pgd.734.2023.07.06.21.32.21; Thu, 06 Jul 2023 21:32:36 -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=FASkjbtn; 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 S232258AbjGGEHT (ORCPT + 99 others); Fri, 7 Jul 2023 00:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbjGGEHH (ORCPT ); Fri, 7 Jul 2023 00:07:07 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2139.outbound.protection.outlook.com [40.107.117.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DFD1FD7 for ; Thu, 6 Jul 2023 21:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BYa9FCTr/eE5QdlZXVuSMcNSg0aPnmf6Cq7esY4cewnDbRKmKT4E0IwVheK3m/V6l5Po3nhPaynBGuopvNPih8Xk9Sw6wyw1OX9Sen1j9rmNi6iCDv5gBmHK3fkXnzOwdqu6lWmaTGc4oKZT1nVbCMSGltGDTVV4NsyEZV3y1OHYDuMPeSoVfiFQxOswGxIE/hfqD7T9Hfpxc+QmhMd4+HfRbcRYMdAa0Cgs4pW1nXfPdw1SzGpP/fuMFw4USkJOQxRdUekg27bjtzEOs/BLu0DHCPXH0Hha7AtcA3hFv4Oh2GSdYRMJv4nBonmlrX5XdMVD2QFMrF+2kE7dxjkctQ== 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=oKvDbD2UhnuQuWo1K6WXRj7t6N4tYLBRnZSfVSh4zDE=; b=GA431mLMrvx7wudr+5b7evimqhDpmn2L71gSYWpoRAJoqANMwo+cgyjh6h+2Wjns+GIS19T+Ict6Ryav8pdYec2ofVo8JP4wasD0hjkYggRv2vLG79ey5EzLx9DqHzpyhuwUu5spYXAatgThZ0vNpO0saC+Fexn+NGa+4Wq6fdhLthLIvIq1lKALxApCElKneCRMLopmRvRp2knSlmvTorupbQWefxpwIVg2Zyk6NdCDXel/+GRb/1jmrlWK4CrXSgzRNwbNwMGUKKNxinRVwP/TzNW05q6jIEkda7AIfN00RpHRIfvEcibEGxMcG5yZaJ8Hz9hxYYQV3wE5Os7nSw== 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=oKvDbD2UhnuQuWo1K6WXRj7t6N4tYLBRnZSfVSh4zDE=; b=FASkjbtnbAaC1ukWO8l4ROMARBZYR0vkie3JrYUpjks00PG5pjE1RQbK562gdzi4nvWGR3LS05wVn8IRvqgQt7YHmP4/L2uvpTsB3NyKKkz+lgIJ8eCUQkVeKTdreBL/eL7eEF1OMZWa84agtqnLjvFbJjxfAY8nRlzgmj0lZ+eof/j4zNweaHjrhaxJrLg8eqQPNY+NXQhDy3AkC4TVJk4EsF/j4Y3A0r/jvvguBougruWzQG6sX9AVDq8DHDr7n4mTvvnUaZ4WOZ2/dQ98lFaYYzaJ6nN9cUKcUKdVvOXS5YoxfP9WZCJs6dXlIaRDf+Jq+my8epXlhy73SIpR5w== 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:48 +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:48 +0000 From: Yangtao Li To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Yangtao Li , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/18] mtd: rawnand: fsl_upm: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 12:06:12 +0800 Message-Id: <20230707040622.78174-8-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: 3857dcd6-276b-47ef-1ca9-08db7e9f95ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rFQSeAspfp2lDFKlxzMlPhTf3CbT70KjF/itr0/ihT9zHgsBBmvOvMHWUZHtpX+h8PObOqACrVj3RRSp7MuRadLHFP3Cv69TCKmYRqLbtwJ1I6n2P7qyOG9RvVmdOrgktO+rGBqRR8fJjIwIDkFx/jP5wRPsyW3BHa2jZx+BZy7slfJK7JBp/p+3IXptnW/L+xkk39CKlnyIKnf/DTG4GJPKZVyIXXceNkbCqVV96Aw3YSVa/AQYQHNj7mZaEVz/q1DedG+pqp4wBkb/vk+Tw+KL1JYM6V6xRUhTf5Om81aMP8VIvE22vnxPT2QDIYLIf2lwli1yxogo6K8qvC+V+8KUYdksL/3avfg8reqtNdo1938mGGomsuqRt0cqqfK/l6Ccvc7ymu2lx/hH/N34y6biqrzWW0eZVXHdWSZIFPCcsz3aSB1CDZH2fqOdg8ODWDSdNNFgpEDMB6Ay3KlsLzZG65KIrn7nBpIIdDDTfQKNVeyF2zhjgq5ziBnpiXJsC+l+yGSs5hMsHSTM1X64HUAwZS/wwNiE5UO3eRlR1NlJcJ3JGi0zSsxVJjSnVjcETYQ++GyQdigQOGDMxCUeZ425VJslTQgysMo3/tRNTGAVsoewUtktWdX3AJ8BvxaW 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: =?us-ascii?Q?2+91pixTliuzBm287BEnS41LFXujS71RJmAANe8oHAoazx6U8JMg+MZKbeCh?= =?us-ascii?Q?NQlyf2hWxj7qMsQGb4Ik4GsZFl1AYx3GF8pcaNhiGE7BI+DRRJpbXOPu97uX?= =?us-ascii?Q?uoAsUa59rbLjpj6zHIS4V4IpCkDmIk4YCOtqXVqi9xVvwD105PvJ4LPlpU2w?= =?us-ascii?Q?+hDm8z68zb417l3lYmq/T4Zbtg6SGXxVPRSxAlZBdekRtLCmI2Xpr7o3E70y?= =?us-ascii?Q?FfKmzl5WqpBmKYPc5G436CKgVGI7m732wuuUaWAlBzUWeRhlz3tk7jYglkCy?= =?us-ascii?Q?FXJJRMTvUYIQF36ny7HQVlZbG2Epjd1PDywcjqowjG1zefSVLBUyb+s2wA5/?= =?us-ascii?Q?rb5wwFt6vEzDj2crs6DD0V90eB+BE/WQWgQCAFC4GIUZ2fuyHc4AyiT2PlZN?= =?us-ascii?Q?v7jHorSZz77jgt23fP5OW2NgTM9DHALC3iz4x8XVsuz/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FEkyLK5/gvxQ2vcnXjUc+iphlAyTNKAY0GY0A+PZoj6gi5Z?= =?us-ascii?Q?n35ugvEGP1w1dELZYtCbhb6G/RcFwbOqjtN0lLne2gGe0ERzqwHzH1cZTkNh?= =?us-ascii?Q?7K8MFs1q1GHvAX0YCPw5ADFDUBoK9PixLhZ/xPaW8lhikB+56INRNTYxuBb3?= =?us-ascii?Q?gCcUkVjyYpZmIYc1r6SM+i7Op10AG5//ePKi2E9nuh/J6FjLyOjlBGXjz0Lq?= =?us-ascii?Q?vHwrp7AfZq3CFV3/K5eNSihgLCF0GqiPumTmW1eq?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3857dcd6-276b-47ef-1ca9-08db7e9f95ef 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:48.5376 (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: 6bmuMV//wz8Ld9Kobf/NgWmQO9I0087/ej25+LwyF7dhO18bvDomWkPWsa6LkMgYBZdyQgId6OXW34xoFWKMEg== 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/fsl_upm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/fsl_upm.c b/drivers/mtd/nand/raw/fsl_upm.c index 086426139173..f1810e2f2c07 100644 --- a/drivers/mtd/nand/raw/fsl_upm.c +++ b/drivers/mtd/nand/raw/fsl_upm.c @@ -172,8 +172,7 @@ static int fun_probe(struct platform_device *ofdev) if (!fun) return -ENOMEM; - io_res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); - fun->io_base = devm_ioremap_resource(&ofdev->dev, io_res); + fun->io_base = devm_platform_get_and_ioremap_resource(ofdev, 0, &io_res); if (IS_ERR(fun->io_base)) return PTR_ERR(fun->io_base); -- 2.39.0