From patchwork Thu Jul 6 04:04:57 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: 116507 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2314728vqx; Wed, 5 Jul 2023 21:53:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuhMZkTh3Kxa1iVUxw/jneR1gIpL2jWopRzkm1ZfkmH4ftLpdsFcsXqkq6OlGbIlsHX09B X-Received: by 2002:a05:6a20:160a:b0:12d:5f4b:c52b with SMTP id l10-20020a056a20160a00b0012d5f4bc52bmr5690301pzj.28.1688619202443; Wed, 05 Jul 2023 21:53:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688619202; cv=pass; d=google.com; s=arc-20160816; b=YD17rQpSp02g12+ySHguBnCtSaY/ChQgDzrneT1J18KTO5LlUFMlYLhTIZ33idpnpW f+QJ+9odjoi1a/6Ur1fypg/OVX5ASykLRk87ZHYWzrA9+de/q/YZTyApiP+YVgMxPxat 9ZDBinAkmdoxBQzAwU/MwjOx1bGynEM8ExO0jg0smfiE8T48AayI/2EVWWVMLoXKjt45 YVnZ7Chu8M+mtInRY5CwZe0OgROviPBn8elqInGNrVY1ZUx+4CL2gO/j1FZRsRGqf63Z SU2Pi8W/XYTzNekm8OA62G+Ld6C0ARyLruldlH/U2OHlXV01QCh2bD6apgRzfQ9LpXaO DdrQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=AzQgmSD4liK3lnHQdlTnRMVRI9lsTJKk7I9V7JPwaWA=; fh=aByl6eSJGMVv9qJHnLlnPHLMFhor6wUjFqe3p4mBGBU=; b=P4KsiSLN+4QesGQaLT5uXBfCPY8p/yKHUyPzAS0ZuFS80xJE9e+XQTsXe+1wEpF0Zs 7ipVwBHx5cH8x6KDV1wNdY0eg2XmhsRhaX6yHbm5oA5YhT9s+3UHBRAtGUka/w10lIkZ dCU71nBSuXPAUYKC+jM3xA6B5oLIjBMAFfrH3TgXC1Xpf3cIvYMV5TQI/zodSkpwxu3D EmQUPntk7P8yHLrjuRbigJJjs0zFBmrUEyKzIf54p0Pg23iSBiZ6x6R8iN4FUjazl3vn Y6nZ9eRZH+WFC9TKyk9IU7+GRuCJrf/dZSS92oebibF8IFjiFrdub4e46Q26fOfr6sAj 0TZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AOqTE8Ej; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a635807000000b00553ad455581si731051pgb.296.2023.07.05.21.53.07; Wed, 05 Jul 2023 21:53:22 -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=AOqTE8Ej; 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 S232693AbjGFEFV (ORCPT + 99 others); Thu, 6 Jul 2023 00:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbjGFEFU (ORCPT ); Thu, 6 Jul 2023 00:05:20 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2090.outbound.protection.outlook.com [40.107.215.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C18F1BC0 for ; Wed, 5 Jul 2023 21:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlWgDo5IzjEyNs0/1Qc7C2HNMCqf9Qf28vrFRHKN88qJzJgVD+C0ICml5T2izMy/8UUR6euKK60qhT4cBS3Tqk5yWnMy0zS0jC21ju1A8isPH/4utKPuvMEDQPADUlaC+UUVmtDYhB7UxL0k7zTOFrm3nFBGWcGvLOSSQv+grFzntwMUgdW72+EgRezqM8QlB1o8Dg/fA9kK0xDg5R7TDR2U4K5EG5N1k2cUO57kvCG6kXisCa3lzvCbiHA0s0EfvpGAb7JQ6YSpa8yBUWaThSh58VmHuzjGSAGujvoRXgB3lk0aLVm3Y4Bkybu6IOGcfQyCyZRmwGzEDRbIfN0EKw== 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=AzQgmSD4liK3lnHQdlTnRMVRI9lsTJKk7I9V7JPwaWA=; b=QbIdXkDRAzO19TEdfrk6KW03xtcOHscvzHHleIvhnMExA2veXIxv8OSbIiVgsTOwS0dczhfl/JmL8zGon0tJDJoS2GROVbphyAODkZ7Z4xKeYdmIJE2yv0uUZOFcgrF3uagpOONUw/jGC7esWft+b+kSNud2SQ0IjUNdPkkplouZCOmpAFsh4+ncrofUHZy1QTbPOnvBf+pw423k/8nCq4V1tZ14uPA6I4Ab5Op9d2YUE1X96gmBQpr+60FkxBRxSHqG95VbCnWtQvVb7a+hM3Zx3YigwPALKX3vAJijGZ7OTOMP3EqmMHbcqe2BytZ2QDmEd+8pibhwSQQP5Ae3ig== 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=AzQgmSD4liK3lnHQdlTnRMVRI9lsTJKk7I9V7JPwaWA=; b=AOqTE8EjxNLOOaTGmli71E1xOuUQtyxIzYKM+X7xJlorFZDKWJQ4ARAo2qnY+DqJ95PEJZf3W8/RK3H4qf0g7PPMs9EL+r0vIg7YFHv+1bReFu+hFzogZqjEmBimY/tVEavAKUW3l6GUY0kAJghZyZleSR1MhvkF7Ji+ZsCQZTSbZoORFgzHOjUeSNwJzapeSg7LYBqCAODVqtf1BJH6S7kVTmb/XGP0u+/P8gkqg2nzAqrkvvPY4hd4Kpqj9pGQZOcvuzolK6j1e+EVBK21En5hmu+jte9j+zw0qHPDWzm6xe9kb7fggr46hjOUII+jjW5hphN/8a+JMUJ/HRG0aw== 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 SI2PR06MB4994.apcprd06.prod.outlook.com (2603:1096:4:1a1::14) 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 04:05:13 +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 04:05:13 +0000 From: Yangtao Li To: Srinivas Kandagatla , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] nvmem: sunxi_sid: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 12:04:57 +0800 Message-Id: <20230706040504.34057-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4994:EE_ X-MS-Office365-Filtering-Correlation-Id: 0764f58a-2203-4261-2294-08db7dd632a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oBGS2OHjeyRYZdDza7I5al8zuD+WwmLgW2+y2qZucB9/ISmtGfXnU3/s0D4rBETlSD1oBVPRUNyaKCy/nkCv0URLkCwyq3HZzTgQ61+k/nnprJ5ZVWD+7mqU8jh759EMp1sBBfNnJbSfZHjf+iCl+5WgfyRo5b5UUW2B9kBrhAFSqfhDKx8VyxtR+ECdikuE/xIxuPn29kXaaYD3uoJZiO32tD7E7jNs2P6N+vLO1ctXNSdAz+ZSa6E6E43iPRN67/SrsoseOXWtG7DrEouquLuaf/jcGu11KXDKCJ9iAk+oNAEvS5w9kxJzSKbN+PhZIXi663NNgzKNVkmR2XwLU8JSJS+K6pHusX9EyR2c+j7PdBOdBg6dyo5oW+ItSkT+nufVfINjoj+doqkqWFkv/btD9k75D9dkm41NiS/cxzL4zBjQ/65Od9bAIUlNxwRLuv0aqnEihd4Nndz+R9L6v5/7Ucd0buloFq15zYcAAEpeMcETYZGROFg429x2QaHlyZWzSX6fJ3eiNy81lcH2FbdSmthea3xg7kHUEyypjQUMekt2Xejur4pvmyH2aQaMeoNWphZgZtWd3qCIj3qrLwOxNceEeS3S9cXkQo2HCJb+hZ6YUnlxPSR4B2U2jAy6 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)(39860400002)(396003)(376002)(366004)(346002)(451199021)(41300700001)(4744005)(478600001)(6512007)(110136005)(52116002)(86362001)(38100700002)(38350700002)(6666004)(36756003)(6486002)(316002)(66476007)(4326008)(83380400001)(66556008)(66946007)(8676002)(2906002)(8936002)(2616005)(26005)(5660300002)(1076003)(6506007)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MWjlQMSDdhwJHm1RYwJJUetAPuoTk2Twf0NcWZmwdTUF+wruApTQj+dpSR0JsLd0bY2MCpGfVfwd/mWuqDroSaPy9szo20L/XZEY/InUDZOocUzbbTBe7xU+HEDTPT+sh7Bkrli3G+uFlASH0pTHw2xd29W4NVI0NxWtbaezLK5KnGZfnOef0KpLz/8UTUj9WkjAz4/mrFDNvgcmOrZFvZOx9bSl+bGqqcJrGH2FsWkLFStdqoXf8AozwsKMhruoScN0alIYbNojv0E20M8qdnSZi2t5FAZuyHw5SiWG68SzsFs1KrDbjl7fPEaEFlbj0fDrPBSP/rHQheF2yJnYbhXFAjFteHHnCPEIxl6WPQpeMC6FH2W193cJHUB0qvQHdFShry0+WhRUFXKtWFkP/bo/70/5uj87+jViGUP/GJTR435BjERsmcAPTJIt2h5FhVBNBZrpNWdst/iOhhUfXQTevTdBXWoeBeMOEqShNOB97/9VjSpYWVhRnRBne3Z2yAjGaURlOju1eQF2Zp3bR3SrCLutEduchHrjF+qU33QCil6WLeCVlw/1s9QnbOvT57TYrv7cyOW263ugZiwbB3xwK9zURqEmF7ZqjEsmC1uC4dooJEAQdW/bXPshk/0r/SBsCe3NCXP784KFiIoiBWbOvsJNhKEtkbF5TpLtuFGBL6UEqPuMlbHb8qr0BZvBYyajVla8BR1RjyWWDa8kyuCoKJCsmJRJGScpY1gBSLnUEVbczJSs1fQuLnV5noyNyot2vBuik8uafn/0B7LCE7qAGGQmN2YtlPxKJ8cHwlyroxuKPA/IrEnfoJ0d26VLihsVMU6YiTG1tLyLKUaAYhwauujEvQU0apt8jj+YeNM5QEMXruKmLnTv9TD7e5A4SzjxC+ux3CIDs8vywsTLhzl4Obde1KvCFJ6hmRVL6IikDnxSnDtM/ekFxmsASMT0qOFr/Sew3mhmqQps88u1MVYhpyXnArGL++lB9+lTC2IDIOZ42UkjPCxl8slGPT2WAOBjvE2HImgGctUK7AejGv9mILAsWFdSWEIdCezzD4PllpOKUzxC+EXyWF+2EOI7U+YdOW8H5RDsXBTMcDQAgKdWXPH8w29LrcG5h1gAnkGxhvZkn8N8uDIas05b1+3x+fOiThGzngoXIH7K4G67/Aesth1Nf/ToqExjGCp2U0bSeOO2cx/Al7wIiO7q5CeUMxeBecoNxE82zjMqi3gJPCuMH69d1FjozhUKrwSYDeDdFVCLjsylqWRjobIBu1gZm12J+QoKZYuhweIK1wefAL/LFVZ/BRZi7ZmYs4eEMkfUMK6yx2EIoOGAzL/pJV0qPztaBRc+AFoNxmR4DQ4ffGHp8z8DrH6j3GNr7jphJD6iuFa9ytDHsZRC0StR/dVs/KJSAW08yfaopt9LdQW3cd2rzG/+fNzUfPlkWpCC1edOMLJvHoXY+n7h5e5x3Jn4LV/om+mWdVqt+HLdBC/71j22fwbXusUHFl8AhyMeWjaG+F56T7FMIA1zJCkuO6eDh2Wjl/lzEz5oUgf/FQVtPvc7U52FOYnbEPpGb+EgOWZsLGMRLQg6IaNAV5aIRW0a X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0764f58a-2203-4261-2294-08db7dd632a7 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:13.1643 (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: FbrEPo02T7MpbblE0WBR5VIcPTZafEiIAeJ5CBYRl1ey3bLspXcq00HI5uoP/Orl+V/AnCLSBbBRLjoVBxZYXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4994 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770645568765934038?= X-GMAIL-MSGID: =?utf-8?q?1770645568765934038?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Jernej Skrabec --- drivers/nvmem/sunxi_sid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index a970f1741cc6..6bfe02ab169a 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -125,7 +125,6 @@ static int sun8i_sid_read_by_reg(void *context, unsigned int offset, static int sunxi_sid_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct nvmem_config *nvmem_cfg; struct nvmem_device *nvmem; struct sunxi_sid *sid; @@ -142,8 +141,7 @@ static int sunxi_sid_probe(struct platform_device *pdev) return -EINVAL; sid->value_offset = cfg->value_offset; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sid->base = devm_ioremap_resource(dev, res); + sid->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sid->base)) return PTR_ERR(sid->base); From patchwork Thu Jul 6 04:04:58 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: 116508 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2314794vqx; Wed, 5 Jul 2023 21:53:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPv2z38yuZUP6CJsVlnoFuS5y/mnxiRE7V1Xzvdo0Sf5YdYCPZyE6RlaMQWrRM+xfArYgE X-Received: by 2002:a17:902:f68c:b0:1b8:c1f:fcfc with SMTP id l12-20020a170902f68c00b001b80c1ffcfcmr814834plg.11.1688619209811; Wed, 05 Jul 2023 21:53:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688619209; cv=pass; d=google.com; s=arc-20160816; b=CLeDOglnZx6w5uSEubbe2lq3XDKcTkRvTU/PA8eCoiC+sMrYv0OaAXGabmKmHezG6b IOUlL+WD6SIsGuM6rqj3fr8e9MTMCKjYLBVnuWq4xfFHpTFpg9LEyr9ycULjuhs1KwBy Oz9z9UKxd1WXsiWLKdastPdwtoQPqmxN5Bwd5y2FsaRNKg/YY1Nhz8ZTq2SPbbZ9c6uw L3cN+IaEWfkcjIXYSBZ80Qm4v+//9BemD0i5lk7snMDvWg5j45ni7la+vxTm328L+zwV DP2wHnjdAYNEP26i0+zuwy+nuibGKI2cH6QsiHoAToGSTwHouIx9tgF/6Vr8ax+BnBm/ 97MA== 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=Ubp6aux1LzJBalZAHXr7TMc8xImu5SW559OR6L+4PYA=; fh=PGAnoIiiGcP6MQVKhySZ5dPGiyt84nagOrK5M0EFEtM=; b=HQYJrAgELkeMOSQUXO2XW9Fy4yg8diwN3OKS/WUYcx9QUpJD6PHryuXjh59JyLqq70 YmG/RNeshjpdIUh5SCzhwOjO9Mq9ZcY+5KaJyomM/9ZKA+lCzDxcFpgPdODkprU0WcK4 XfgHz+A5tnarUkzr8Ll4b0wryKQ+XD8yqmPwL4IcDcBDw7xXYek1NBw109PA0F982ySm 3GCxH0ZpzZh1pJ/6GHIff4XTFFWIKkmiRys5MYhk+Wi+jjzLlDAnZbcbkT9MYk5fkm7m ClbE+2qn611hwOoDNeoN0MocaE2mvr+b9lQnYyhf0HagV4jHinbMKFQeuGL2OXK9Makr S3/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ho8jUn28; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170902d50600b001b7dde4801dsi536589plg.530.2023.07.05.21.53.15; Wed, 05 Jul 2023 21:53:29 -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=ho8jUn28; 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 S232145AbjGFEFX (ORCPT + 99 others); Thu, 6 Jul 2023 00:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjGFEFV (ORCPT ); Thu, 6 Jul 2023 00:05:21 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2090.outbound.protection.outlook.com [40.107.215.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F3461BC7 for ; Wed, 5 Jul 2023 21:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hP3aiT4Y1/Mf1IX94TK3LOgI140vIH7te9YSF+U2otFnrilq4n0bLSEgWsLwXR3qGrfAswmoBdat37l60zKUj857ZZsKCextBKiyysR5bvVyJT6JfErzw1nBMK2IQyb+xOXt6UdRZRWQFgcePHytVRKifqPkGRtADixXjJlFcC8sr7X9FRm/uHPv1XbABQrvJUTFJ6aosgu1RRsTPDwcjDT7hw1tY5J/k0gs4fmvnWdUGgYag52vo9QDirUskA4ZK6JS3mULBejCWPrZkHS7L9iUEmLpt5bJJqez15nhxBxOeewffPq3FEXNWAzi8Q1ZiUDt0TpgXwT4Z+zNTVz2ag== 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=Ubp6aux1LzJBalZAHXr7TMc8xImu5SW559OR6L+4PYA=; b=oVIR0wRAkJUbnkuNjJi22npo++Yu2JFiz1rnvb2NL/p+IFMslrpIaEzFMbZnH9q3L13FKLXV3ILGaKyWL4ckxtPQtT8wYfqQ4krXslTRoD770QkkKhWzCPW1aohEUfW6KvWkNTm2xT2O401g1FNBjclA2U8kUAluJosk6QAjeFNpmRNmndPohLae1qG2uG73Az8s9sCvbnszgXs2heOm3rercl7xxJPCbh9Rzv+ECQkIsvM75xQ0mYEk4bLXaiHvBieMJWwBe8Be4IRzg4QEnGGUm/+4J5/uNyiSKrOSJM/0tjZwwSFcEakATZ8d3Z0xrWerpi+myKdcuv+PpqJbTQ== 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=Ubp6aux1LzJBalZAHXr7TMc8xImu5SW559OR6L+4PYA=; b=ho8jUn28xqXmvh83xQmH9RUMaCLnsTZe8t6VMPqPmftX2t0JHjW3C16murL21jfSchftPIAD2VdCxKZhrQWl6AxGvhihpLaTc6Z3kJUx7ksgXwNk0WsCRgFst/MgeBgGUxXu4fwAO1LhkrODR9ODXTt7jwpx0qcHWBgVzu9x4tsdoEriD51ZUkioUD6GUodNWCKJ0ISo/Jn9uursurKYb+M3zDdsniZqg7TuTsuAt6BUfLQ+9/i1WBTW2zywWoG5vq68U+CkXL4tQVIZQrYZ7BQ72Yhr98vjADLjkowjfqpd5okc+R6puEg8uryUSEVLUtyBSbaLIC1YUtPGZcuSgw== 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 SI2PR06MB4994.apcprd06.prod.outlook.com (2603:1096:4:1a1::14) 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 04:05:14 +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 04:05:14 +0000 From: Yangtao Li To: Srinivas Kandagatla Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 2/8] nvmem: brcm_nvram: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 12:04:58 +0800 Message-Id: <20230706040504.34057-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4994:EE_ X-MS-Office365-Filtering-Correlation-Id: c17ed434-8222-4bd7-1ff5-08db7dd63393 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U2hx4Gg+knOcXzfMD9MRavYoYiIayqF9nq97WVEslOUaxXDmEXznFpKre6TbDgHdDfyZvDvFbIks8vipxZenjwc8gYy4puAlw0dTlO32cluG4vEcEYx5TE6Nk56YHQV1vwigcTNeaVyvF6byIrY+GO5jQw3gG2fKBHHNAvETovyweLzSfX351xXJ+iUxwqz5SQGWzVdGykAsIplQJrOSPXSaEoTjD2PxnNhipwQWRHEM94Uq0cdK1XLo9r79+lun45Ubd7ogD5l/O3z6qRKT9bLlRqk6vJkQoEkDCC1d89arcrUWWFk2ipOqgzPIq4xnZBw97LHaDHUC2k3ZgcnwUfdZiRAecaTVbId8KWDpkUybBs25+8vcNKtWH5dIZ84NcvMQTocwbs7owxMEdMSGVlg5TTYahgm/XGf5HZMD+BtkpvelcoIsnyuBBpLKRpYEN3OxbIkGHvFQUD3VljdPwOa4l6nAbFRLLQPUtTVMRgqgtVs9Q89ae5FNw/khHV1ktfrdwpozvzaBtndSMVOoCJayFvJflE/aiiZsmJL95L6xHhntgZMx4/bjsXtWVfsTAEymnfpy5xwTaHRAgL26ij8Gp9sLmq++6/rRqOkxk5MD5UkeT68NZBNfR50xWkqN 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)(39860400002)(396003)(376002)(366004)(346002)(451199021)(41300700001)(4744005)(478600001)(6512007)(52116002)(86362001)(38100700002)(38350700002)(6666004)(36756003)(6486002)(316002)(66476007)(6916009)(4326008)(83380400001)(66556008)(66946007)(8676002)(2906002)(8936002)(2616005)(26005)(5660300002)(1076003)(6506007)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WibXDkv5LgE8F/SnpYiYR6NsyK0r5WtL0GgZA/RZelBpscOERTZADerzAhFIt+06L4nijExhR4YH+kRb4bR7KLeagqyl+ucx6HMYtmLuu330qkkfBkTbZY52O2THRArEQ5gYI1M2wLgDyZGVKzLpqvtVkNR6V+KQDv1cKqshJY6WRxedr5HN7AWfZI1vmdgm6GzbnWWiuE5pDFLs2B7y9NlUHEOx3DSBxX+0sxJIbRzGgHifo5WX3Wy7i5zEcZ3el5TJm5Tjj3YAR79X571ltIg6afz+HLNY6D4QBUK8o695+pXcdO8B+Rnk/2gEkP27SG6jS9ilo+7wg+9rQXDa6CMSsoS8+jhUfRrywIP4pqIrtlQ2+zzjDCXx4Aw6DvMHRLJOsW+90DTFVjZGIaL/bNqn65lCSMOO7LXAX6yvrtl136LsmZX5NNX1a+5gbWBtBYYF3NEt+wgBHD8vywDq+FL1eL1S/+7GxuqSXGVg4ORTZ1Y0Qo9LRVI3Q0iX5kjsxEQ1qvoR2O0vrFYMeAMDH256c0n1fVP/TizXYyrTHSHmKDFuW3PGhLLmU2+LBhR44XKpAPBjbj11BbKm+EVuo+uGK9lPYg8Z6cJrTAYR31dlBRCPQRvYvGeyJ+Vr0TvfnOl85ARAQU0nrYvvwMzhxypCxYve6HJLTITkcj9HcIuKi+cRrIL24OOoC3z9Oy3D50aMghx9hsLJIbe/mU/CbNg75Z9lQdGDyijz9q7AFXqolGe7444tDYrFvK5t5b89Za5ApJE6H6hc2k6nI2ypqUhDy8DH8Su2gOWZSBmoSdsWDDQVxQibEGTN2bzPhPEWUu5cuoeA+RYr0ldfFTKSfR4Corfs02iBWQu1PDLibkm0CDzBDsnxwkgmD+g2VcTe+DM8t4RGFajLa3SeHJBzshubaCyKgfwQFOPARhA6SJYg2XJZFrXrBaqLhqdw7y0r1GwhegiXAtD2Og0kXpUGyaHdSA4JVC8o5qKrubnNq1PjtV0Yn76VJf2lTg3ymNubCihqkN4jNYWJVAY1yR7SYofhqu+gaAHvlITkCwh+SX96VxlERLm4NJDkX6V+LwUy0gAdESUdyliyzOCStsdWgsm4Fxlwvd1CUrPQZC5d6VFeXAgIzYyex/OhSZCuwOWmCElEeYxpfYLl9UTstwFRRQMPOtBI1JM6fhC1Eop58RDD+9GvB4uCdq8wdBcKzxEMdAJY95HPI095oR6c7UToZWKTGRnuh5e4s7seDFmTYMCvj5EASykrJt4oGg5jTjdpNwTwlXJu5dPcO4qyDeTlPPf2C5iL9uTHM2+GMsa01OGaJtWDFRfly2pCre4oeLXNPVf/JZMC31RH0Aa+qEjFxyw9LUfINw61KoLvneX5Y5TU3JS6glGJXMtzuDowkB4enVCQ9V9x3cqHxTmRnwfW7reYqK3yTYOVpAC7RzIHoPxaCAuKWGe8AKk6VnEnWaBYP+9uwbB9BZlbwAxfRveN2ZyiiKMycSwzynXcFAeYrumBPr0YUYwn/L4aDmp/5NaFL6aDKva6YlPYpDIVPvFkyyztO/AVFb/98c1xmSstNjpdEuo9OQV0qwaDVOg57esD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c17ed434-8222-4bd7-1ff5-08db7dd63393 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:14.7160 (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: 4pKjOlgAC9H+odXdX0mXIJYyPhYM2IYUAaPn8yUn+LTV50q0fZ/7KFuXfC7PYSdFaLPpqkYIAd8HCdl9ipYWsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4994 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770645576888349723?= X-GMAIL-MSGID: =?utf-8?q?1770645576888349723?= 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/nvmem/brcm_nvram.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/brcm_nvram.c b/drivers/nvmem/brcm_nvram.c index 4567c597c87f..9737104f3b76 100644 --- a/drivers/nvmem/brcm_nvram.c +++ b/drivers/nvmem/brcm_nvram.c @@ -159,8 +159,7 @@ static int brcm_nvram_probe(struct platform_device *pdev) return -ENOMEM; priv->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); From patchwork Thu Jul 6 04:04:59 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: 116506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2314691vqx; Wed, 5 Jul 2023 21:53:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHR/FZAUR6opE62/dWJWpjfSetNB7rSNqu5IwosgNURuNmTrcv1fVjf1fO3F8YKk2+WBa/W X-Received: by 2002:a17:90a:ea05:b0:263:e122:a692 with SMTP id w5-20020a17090aea0500b00263e122a692mr565209pjy.49.1688619199152; Wed, 05 Jul 2023 21:53:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688619199; cv=pass; d=google.com; s=arc-20160816; b=FSR2gJF08hH9zJozkh3CwEfwdxEhLQpS6vcoJUC9WufF1Cjdn8fGvOWbV4Qx1VSe7f bGlO4uCHQW+/cU+gKK0mn2dVynAWcBeiI5Ef4fEQ44S/BOy6ydUgTQihrSBeAXZ8nSKP vU6YfOdxFEXuBRd1MH+J7KDLQITydfdeY3YEKLLGGMbUY8ZNFGGFhFwAn1wPJpeTeYtd 79zTR+2SUm3IcS+lFv5cRQsztrZtIL0P5RppsHTMXSAK1aNLeuGer3kdbRo9HO7ELP+n r4gqaYatXzYEDBzHwxDyBLeqeZ5tmejaeosWptmr7Wsr+wUmqCcp8fU6tMbmQqYeJCuv qXDQ== 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=jpV9uP0KD9gUWTTxcPL/CTt4JWL19m0zAlTBL/ShQ8Y=; fh=+l6ZjXrBwv9PeiVDo10pYQeLGuHErjfvtQ4SY8gs/04=; b=VaUeJcKVgFQwm+QSEqsmfrn3xNP4XgDXIliOztEX2txxwWlTrmJok9dIW+Rnb+SYvS eXp4hVwhOCuIlt//tO7wbaSsu+ABnLgzUvKPx9I/57HGk5lgYgbT+eSzvjmBMYvkHSL/ aW8Cd/0t6hfH99gLSuSxN3eJPF2YZsBbSatEcfSKJ8i1A4IsRF2rE0AK1N+Nobb/A8Z8 hdts1cCkUgJxFYwqRVqljFVGJpu3clX1d13C4F1jMw4jRRXyslGseKx7mt1pcgBqFerM 6cnf0T2GClYeYv1FG5SsUIVG/Xaz88gAzjsPGcExcZJJ5vvUeLy/RcRXLmzF4mOVCMuS lDRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=gVsc4GLo; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z24-20020a17090ab11800b0025943bb2873si786865pjq.136.2023.07.05.21.53.03; Wed, 05 Jul 2023 21:53:19 -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=gVsc4GLo; 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 S233144AbjGFEGH (ORCPT + 99 others); Thu, 6 Jul 2023 00:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233173AbjGFEGD (ORCPT ); Thu, 6 Jul 2023 00:06:03 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7FD21FD9 for ; Wed, 5 Jul 2023 21:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MFJQFNvcUDwpuhaaFCULLxdQh7ain0NHsjCF8YfUK2yqds5+gGW7rtxDCqM2QvCkW23W/u1I86X3n+xs9cWjBHaws8Q2AVs8s7TY4D6e9xC92awjMDspSLlms9Ofz7NmIHGv5NqoSj35+3sXFW+doKgNB0w9vLAtqoE0wq+iGxJqvJSmqLHIkJ6BHp2vJE7KD6a/6cAl2aQa/ogxtWERp34mQGvyS5dLXEqUAJcmyKS23kR/OKkgWtotstc/0pHe2t54KF53wJPVOtwcDys8tnpV++xx3DIUBqbtqAZ2XZwT+BsOr9qqb/HIPS9hH/NtJ/xgJ5PUJI/PaPBWYdH82w== 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=jpV9uP0KD9gUWTTxcPL/CTt4JWL19m0zAlTBL/ShQ8Y=; b=QEN9jtZH3UBoHggKs/oNPbStujhPnoGUepSVe7ADrcBb0VqTwtmsxoWwqMvHnS2y/KfW4DbYxrwLC59uZ7/DNzYE6zSjafjibK2biV0jpnmYPUA4WmJDdyvCD4GNzN597RCgUET6K908R5r4NRYB5tBkVEwDOvqvpAE2QAS0rdSPaNwDjeB1ANIBUBq6ANX0ruS7yQc1cwJB2uOndCKCHvo0gZCQ/TD/5nXkpEw2oWlDrMoG/oD8M4jogaoccSVA4VigShMwf7Y7Sj4eWOcrbhXyBEUGMswyk3xXFNFSJ3sbhw8B+J5/lvkFRKK1EnPOe/kty3grY+KqOfmP1pv9Lg== 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=jpV9uP0KD9gUWTTxcPL/CTt4JWL19m0zAlTBL/ShQ8Y=; b=gVsc4GLow7UMce2XzPtDcgpOsXju1/JdQxicTt8bAVzsvOmL3J6ONvSUl6A0wnbsoOD5/MG3zp0kXAvaFY09gciiQVJtNCYZUwd1gRnrhfoaQb2Np8zTUYJq8H9ixxqd+z3tcvcdqn210X4/M/Gd79KL3vXbJ3eJ7OmD+/5alppg3gHIMUklPlHk6GsihomJxjXThR5cqLN8gdqgZKYCd8ddwlnIhzYutHagcwLH3u9e10b/OgciRDiK2ZZ2SEyA3e+B/Zq3rtxP6gLHIdgLqvdfIQ9ZuQYS1xt0zzGHboLsByABrTJv36cmX+mREllU9Q1diEMAIp5ljZb5i7EEsA== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:17 +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 04:05:17 +0000 From: Yangtao Li To: Srinivas Kandagatla , Vladimir Zapolskiy Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] nvmem: lpc18xx_otp: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 12:04:59 +0800 Message-Id: <20230706040504.34057-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: 80560b3d-dace-48f9-85c8-08db7dd63510 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EJBaBdx8pWFJOBRyF6SfinUcPyC6xYjEUqjFQIUEzqzaRPBn/Ud9xmagrt9N9/8YZ/isxTxSKjVIEhZUbAbMOwT+LwNPljyoZP1Ubg/3P6WG4rNqT2+RgqoTIhbuJfuTVIzF/aVC1GSmzOkt3K9XP2tDQWCE7vt04sc/L5We3WqSM1Adq53KQV+q6kYiFEimulHY8MrhqZj997+AjJ3xFuNlIVVfbn555VfjckQ0AA2FDNW9wLZkGO5YuDqYrrQKF4FPGqxnByehp4YGN8Z3VuzwNaPHpxXHG7KYhQq5X72eec311k/8Gg03rOQbFHg6fcq9rgWuv+7ZfdMxF5u/RXiTlr+lvSs/1eXl5WcPWb4Es37JYN0v7EGXdUZ4/h7TstvuhL09SPv/275bTVafIjWCvyboW6bOGzTBWrhC6ea251hKQnqqlglHQWTY5WDfSRSwv7enL634hnisn9SEW3dxJMwcZVpWn+CnfxHTT02NVZkugzFYyWjvFZb1x8J49qp0LhP8PVbVgTocEx/NGzAUiF0zDvGvKwj1RKRMRjykh1ls1wMqFdE3jODY0VrLqHNJW1MSZ88QwbX8UVZaxM7Es7Why5vJ/IJjZeHobO6ExoYbj1jLqci5aylfG5WX 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TVCb94ZAmn2ySh17+cmsaXGmP794DZUB9KuimCMmFv/Q1DEKVfWjxobSI/iJ2jofJ+nr060d3rAY1Y3EMbdm8WqeaRftbS0T+z/D/Q2L0fY7xnxMAcGMumlh0m+cwzTtiHkuhsJWKJ13jWMJ5VA4fr6oLrEpH8jWrTWnTJC3QJTxO0rogm5Z4vh9OrPS2lpgb8Jo9Kv2AQaBBJnI0NDmNqGwYnhtdsuiC6v0RugZtdyMw+Hqlm8eMRKqnTlxrdNW2aLbRjcAIKYhvpfDXTmJagkkc7zzZCOzic1VqTDvS0oGA1sNss3KGPcPVAAWmyaMzt9MhUSaW3cPSXXAsneahRj+rZ00zqvVSt4exmsNzmZmzVaLvVA8waYdOz7g3cOyT2f7mdSuUhyPrAP7k16Zt1gkvSzi2NldAPjHuU1XqksU2BbVwLGJZpxM4810qyhCSY4OcxvJrPUSlJHMbcvkkvRMgpbbuRDu46ERbL2iBiuYl7JMvvCFvbbU+yweWFNZ4c8Gk9weN92SC+sH0AZVsifm81JmBALl7EAuNjuyCY3pM6/GAUuWgccl6WUYpK4TTEuxzo21+D4Jxofst7LdWSg5BG8ofCh6zH575nf6nXH3dgGNGR4dF6o/PZW38XC2MPwbWWX9XRf2GalSlWjyZT/uh+7YhLc1lNjM28YFLDq8HXcUH3Xb2qEVDmy4CLH+stvdoZrrDsGB5nstVcXgCXd+VA+bW303QOR0CN4D7GPogWCH+Dcdyo+6mOBwfPPrkb/M7cdOPLh6VSlQ6buwkDnYMd4JnQPSkuWG3Qzi2h1Z9wbB2+ylXNg9pP//7jaSdHExQT+fksPw0x28jRbKtAxVBHqRkMS1h7hiuJ2G6EGMT07BmXKBReKmZt1v2VmrIY/8EQqbHdZ7OvwPq0AhRNO267KKbKp78ZRswr9hImls7kMVNNOHPoq/LsCOhDtbDf4iM/AbLn/de7PquOBku71nKLkAXVFq6qdx3BIYSUIeVxUlsaJpb/4QF7qUHFl3dbjAVFfAF3Ed5QCk2HuYxAVowVwSwYd4v2kc58XUGW62u71aqIsmfohhHcN8Bolw1BkefiMHOC2WwgcFnYrFdsTNw/n1p/bn98DzeD4KvvhjpTSgfWiOR8iEl9j+6hNs5DPPs334j+3SyTcgiuo7byXxZmywRMiSxbnaYEVlfTC0exqMi9+MDsM8LFuY5KaUz0+WGEvzRFGXtHUeYQGhiwgEYgwij48mbL1ts7zVCTCfYUA15Osnmc8KO2YceMDUJlD5pSbkUPXFTe6LDIm0UZ5h5T8bS1ElXX4tLvGB6ar+kcrAH5ourVx/j3kUWOIoY0uGySlX1GyH94xlz+tarbkYM+FYWXn9trxLYW00mpqJYdjTbgJFepvipiuPV2ULQhPZMGp0f4PQcHmbL7KWGVANUbBV+eW2RSBJWrnX+fOoUwf4hn2T1+zLyE9d9w/shKHD0IUQPdK4iCKWLyYK27EjZw4S5m0tomVoE7vy3XApMB+mDT0ikxloiIJPtKqJg0undHi9XObhLlwXgkMUcaC9hxmWgP9B/ttotMnpB6CaQ4OZY97iIZ450XcVPTWo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80560b3d-dace-48f9-85c8-08db7dd63510 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:17.1759 (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: dagmAYdQ0q9qWg2T+E0xiZH/1xCPATtTe52Eanc59Qnf2pQb/oXa1SUK1jjjRdVCQxl5FuENQrZrCdk7kfE+1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770645565323362059?= X-GMAIL-MSGID: =?utf-8?q?1770645565323362059?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/nvmem/lpc18xx_otp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/lpc18xx_otp.c b/drivers/nvmem/lpc18xx_otp.c index 16c92ea85d49..8faed05e3cbe 100644 --- a/drivers/nvmem/lpc18xx_otp.c +++ b/drivers/nvmem/lpc18xx_otp.c @@ -68,14 +68,12 @@ static int lpc18xx_otp_probe(struct platform_device *pdev) { struct nvmem_device *nvmem; struct lpc18xx_otp *otp; - struct resource *res; otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); if (!otp) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - otp->base = devm_ioremap_resource(&pdev->dev, res); + otp->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(otp->base)) return PTR_ERR(otp->base); From patchwork Thu Jul 6 04:05:00 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: 116501 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2298679vqx; Wed, 5 Jul 2023 21:07:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlHu06cRJBs8SW7WiIDZkRNsFxMVnQMPq6ox+oWiEXotBACQ81j21VdOYlvlBfJhRtdgTUfv X-Received: by 2002:a05:620a:1987:b0:767:614f:322c with SMTP id bm7-20020a05620a198700b00767614f322cmr753140qkb.18.1688616471786; Wed, 05 Jul 2023 21:07:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688616471; cv=pass; d=google.com; s=arc-20160816; b=Ly4LtHoZJHKdkrWqxISnjRAe/yahKREGceY8u0uSUI1v340u2z7WIP7z5KuREbh+cv 6KcjtzMhZT819tmQ7YabBEQQuUtGy76qiAcIusl1byhiGUieBckjMJqqcp8F0yT0rKUX EKknDgYsu0bsauVNQ3sAOk2dx49nXRRTJxvZ6yMFnCT8Pv9OpYauYby4zI4qPl7Y3P1x xx6Bxv8X5f2IU7cWVw0oOevaMkjQObCXKvBbnQbA3Nz+mFLi0Rpe0w5tUnNDx4NlYgm7 ry58g11StYn9kJkLwngf6cHT7YpcRWdV1k1pnHiL0l6U9qNYlwgmUz0nCEvkPRNhBl4a DRRw== 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=6zHhX2g1E8S3p0kvzrKDtwKLqNP2IrKxYRUxYn8U2ao=; fh=n/7PxjFzX1MLlm5Kwbv2RYeKTy8uAPGVD+BU8CB8FmI=; b=rIsYmb/9qwNneZmjmDql0OhUMk/fEi8QEj4MrYjiDMbrbOtXxk44I73Id1E1TYlu+4 wt+l04drf1/DB2uaQMdOuYvr3+8+1SQdgfyJEWqBKuKaK8HkIlis0Qo1Y8GyXNBWbHQm R9ZKXvSmZLgFVkbC9HZbVAZwHOEbLxIqybdnmkXp5pOsJ7jXxqd1rVswCzOj7AfvE02S 2XAq0olQC/afDlSLBcINH1P7tPa/p9ROwGmXJ782J6gNI5hXFejcdpsreT9CxeZPhJJy OOi8PT4ig1IVDfnyBBfZBfC8g8PKapHMCv+Bms/Wwv4y+LJ32KLLxUq9sKjziENPjCfQ aR4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=X9sICrEr; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056a00190800b006689a4f67a5si636217pfi.80.2023.07.05.21.07.39; Wed, 05 Jul 2023 21:07:51 -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=X9sICrEr; 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 S230015AbjGFEFh (ORCPT + 99 others); Thu, 6 Jul 2023 00:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232647AbjGFEFc (ORCPT ); Thu, 6 Jul 2023 00:05:32 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69C811BC0 for ; Wed, 5 Jul 2023 21:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ik8h5F11U0KcatljsPWGN4Ebi+4SfmBBJWM3fcUYIa32bRBTzTRa/w4zWBz5xG4zmdY6r6mB/JcMtpo52/lctRpQK5LVu2v+s1xtvEv0ExiVT3UX0tv2ILyHqfRekcbEByVGP6n8s4dOzk7CpReCwRxjKkgX94MIVPrdsacd9em7vRtsa0MtJkkCSmCgvdIFzUg9lnuZY9diz4uiL/R93Z7o/UXRL6AQF196dJBdFLtSHPXo7Vp7XQE3paJ+vnxJUp8XnSO/IIlASetpVri0M7W3dezd+Dhn9AOpuHWlqF6CU1k1Gu2V7YH8eCn81b5Zg9WsPoSQpwBJVXhSEaTldQ== 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=6zHhX2g1E8S3p0kvzrKDtwKLqNP2IrKxYRUxYn8U2ao=; b=gBlAA+SIp9TP+HK1prNJxLCFPkwUh2bdZh+A+sQlZiO2FQlh0im+0GqlkOGuUSFsYWdVu5BHm6RHR77l6LfulsmxkcPYx5KUf4rFyr9GXbOaS5T3XWs/350uzbuZ1iNg4h76bMxAQtWNl3uiPmB3cqzEmePo+EHGw59qJEyw3SkqdYldIwWEEzhzdlBDA+97i5bxHu6KHz7gxd/t9HLi9d6jbACwa7CRej2jNW3wm1hFo5CNBgvp1QAp3QHJecKULaHLk+4PCncXP3LpaBtuGIv5wRUj0Sn21ISs7/TW+CxEFkw6jV9U1Smt/J+UpWekOYjlOv9PTY3rBUSYmWElOQ== 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=6zHhX2g1E8S3p0kvzrKDtwKLqNP2IrKxYRUxYn8U2ao=; b=X9sICrErOGUKwgcDYG9C270O5UkS/7RaGYNV1/NfQjBe/quo2FAXv3PVtBXaHas+/tApqGPJ07Xiqx73aQuuVtSE9Jjm+EhnKHOJRWU7j9+tO1EQ+C+glPgVGTNeUoX4ci+IheblILOS7QVrd55RfmVr9dRBtH4eDham1w6KUVmVIfMAWeybITVDRj+WS8QUaBIQXf3WkoWHH6zdU2XoN94L2/nu4iPu01e8v8UFFO9BZZSUXL/67TZVibgq3tXIY8UuogbDoGzPmFqzqgLrhrwnYGXiilnijB5QPmCnLH9ELsQ8dwtAO/5yheRRm20dj3+TTNzIvFssXyI+eyyS4g== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:19 +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 04:05:19 +0000 From: Yangtao Li To: Srinivas Kandagatla , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] nvmem: meson-mx-efuse: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 12:05:00 +0800 Message-Id: <20230706040504.34057-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: b4a253ce-40e4-457f-2d03-08db7dd6364b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7BQuN8YsQlm2uNWf0U3ocj+NaACsylTqNTurApVm0aN1p4oJn17cMIIgL+a9sAwfOMCUyOU2yrLdR9lVu7q1lK7Q0KCBWGMR/Fde19VLrJ1Loe3MTIBikBn9ejqgCgtaRsMGGIRtsAr79GmySN6xGszs+4GVJhFFTUyH44nlZhwJ0afUNY/gQmWCAPw2VBk2MMAwNXcBFoSrGJ82x8e9hyNvDD+XNGyAnYTHg6wqh+y1eBwmMeYluWZRfG81IFHo/bU3Y8oWnyQhoR4mW7FEMSdplXn4TZNtnyJuyTB2eoujYzIbTtkQBdIgvb93+jWCqi1LDolfZQEpV2w5YdGv76UB0R87EWA0Rb8dwhaRNdlSyWcecKv7xFUmDHT/dk/sxOUeS3i3ssd+ben8IBl96vk7oy68RtrJ6UAbyj6OzTSr7lkzsSglOiHE9QrzrCs0jZplr8sEFLo6UaZmo5YZ7hMA4SfMK6YjMaVfu1eGO/RwNWXNowrIR/rI0v0zQ7PpnHDmzDx1WKgvMOid8C8LCERlDogoNL4uy1vZ7iM3Cy+VDWls7XkucteCHx8KyuGoWrjRlmi0bgqwtQEx7T+1CiwpCHqtBxMZsfQ3cx/GhAmTFzZhUBJMHKXZe6EVGhn4 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fx4KQVUPcLSSKIL05ZltOIF/Oz87aEBb5B7mySgU8nE2/h+4aWfAkxlq2JQ1QkRsllvU6WhsPn1J82QmaGaKHsS3F7tezkRX4RYmlTw4zlycZaqxoa+vwQDlnG1yeLzWFVNikau4Hb6bh4quDaAF70aYQx6ssphblf1VOFrNBP0/lZUQqHVQInU/ED9lIemIe1zvfhwOswtH8JzwZ0qi+R6NvqyfASynWepdmR0dEfgXMMP0SX71UspiGSZfHxN4aFdSD+aLFETPv+CDOUlV8z1fWTn4+JbqP4O/8C8CMukb67eUnXOrnBuQUZld8G24+PHUuhCF5r+kqV107BK8FwbYp2L7Hp+dhgse1Q9Y9R+3JktlCNg7qq7gyLS9SMS1w/TUjTTVWAV+SjlCW186+QhXhvKEIQAUbEC7NzeiJ+kBXsbQlss7lEqSDvfOMbBnu7XYPgvKIceg4vI60Gb2Jf5Xy8zsEL0jjd+5rW0tBeSWhKEM1J4ALe49aoOLHln6oMR8p5p3Xmvx0103PnRVLjKQ3t3gC/7M/WFBiqPbnO+XL1bppVaKRshHWxdLDJOQUun8ZQvUFkuBuvLDMy3WWuqy4S1MzCHzJf3Q+ilHxknZ3ygjil4jGJIK4I8P3o9DKNrhW/fxILRrt0TfE4UP7K8Ad5GcVdG5smZATUSLTcjwjccb6hjvpq7j6COCPhYlsz9iwRkSyYCtGVGLODwGhWBRcerimd5vYEYftVjLCwuyU3n2InBqu63gvGxL1TUd/lupZyN6q5TyWyPoRz2VuKjj3e503yfWLlLQmslW2V8ydfAs2HkfoC3PbflOFdTffi4J6c3MRfDYCpx8NXm1cazt+L/47P+j7JgaxHcvtOwfGWODPUBiyYI9plsYvtr+v7Mf557kCuwHEhgVJFIOBhaZ3DPSclzh3w7rOSBZwt0v+m6O0KvKm6i+jABZXQ7sBI6X46I1W36AXGQQuy4OzSVP89WcUYPvf2BCCaJpq22CLS8jyN/3jSxhXjpNhhT4Y+WTbHa81NrY37jQHrisswNAuyifogQBjHhsIRJxUDR8gxrB6XhmrBaz3Elt/6r2lesVmi6NQqX9hKS/IZj8sf/P9dI53iAXpoKz2GXBjAe+0Rd0Yc4L6ZyK9ZH89+tBpFwCA3rX6cPojRC6ZELeoebTv7JREY5I6v89uv1TJsn9Ad7zCVi2KRTYtKiREkanfRz0feP6kaxASIGn/wNNFJZbmynTEesZtQrI8QaJ9BMNDWsrysCJ1H7yDNmBJz/3fI07qe1XD2jv0Ip0KwOTSSrWJJqH13EoDoD1saOWwk/S+CiZ+7ME2ptdiUEICqIiKvQdMLeX0jqY3Ui49x0kld4FEQmD1lbrv2a89KrxAap24/g8lDBSqdVA/kEJ5TuSi5qVY4thPnUjjAz3xkye0t8jIDCa6nDcLi2IONe/0iBB1XCVfsTNvlWkJLFiORx4aE21FQik/kqcF8+IAf4+kuBQF60wP3tKYibZ/Dsar82yLuyq0T4jXftG3DTuOjp5231SCcwVCg1v9EfQvX6UELAssoS+5UP7W/V5TPHJjhhky9GV0yfNSslgnZZa86Bc X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4a253ce-40e4-457f-2d03-08db7dd6364b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:19.2468 (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: c9aYEg0+1zbIHQ/PfsqZ8H5Avhhhgxpn+xVhuuAX2aU0qwxo4Ebw5wdmGfNpbfmCWtXoGWbQ/NMriXdTOI4Fmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770642705794822017?= X-GMAIL-MSGID: =?utf-8?q?1770642705794822017?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/nvmem/meson-mx-efuse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index 13eb14316f46..461e3ad87bcd 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -194,7 +194,6 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) { const struct meson_mx_efuse_platform_data *drvdata; struct meson_mx_efuse *efuse; - struct resource *res; drvdata = of_device_get_match_data(&pdev->dev); if (!drvdata) @@ -204,8 +203,7 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) if (!efuse) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(&pdev->dev, res); + efuse->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base); From patchwork Thu Jul 6 04:05:01 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: 116504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2306222vqx; Wed, 5 Jul 2023 21:28:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4cSuj9jypHGh1OJ97RkSXpN6iiyMQwkuEx2hV5zyh7OaO2nWmagkRkILvycYIvB8kNtp4 X-Received: by 2002:a17:902:ce84:b0:1b8:417d:d042 with SMTP id f4-20020a170902ce8400b001b8417dd042mr1391304plg.20.1688617703745; Wed, 05 Jul 2023 21:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688617703; cv=pass; d=google.com; s=arc-20160816; b=v/LTkiSTiYey8RrmfkZonmeOwgmvU8RFiCi78yZwe5I4BueMpOydyVk6lTaTXOvE66 9sdmVSdtj2XdaMOQC4tZ3jSP9vJ9dGJQ+izLN4HYy74uJq1NIXXPM4aD/IMxYgNT57pd uBZlPTV1oT8i+xdh1h+0kUE91kKiuB0cM+W1LjrKybpGg7pHL52RiPSA/wU/Sl9qgh2U b90KOOfgnjBBanaWqVWs00J304pRoNw+yVvJ/RZU2TIcqjyda/qlVP5XXEQN27u25+UN i4SamhpRHJGQgS4MS42b70e8Dj504m2BGrKLJFHIX6UGEfvPPzeOfDP6VrpzzsWHiX5t sfQQ== 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=F60DtyyxcXu4qEz2ynm/lRwj6z8vRuMbXVwcNW0mlZw=; fh=IX8qXrrRSuuKKNB88jOAL7vK1WjEb9R3oANuwlx5/9I=; b=b2YBLIisPHJjIM0z/5/GNKvhCL8QK//yRESes7rXHRemBSl6v0DMmB02ebDz3dvK4e gAtTWVtT80HgjEe6y29w6eWPZmyz9lzWY9QMizjrp+hWPAH9d4ot6S9Zr4GDRtBbWZEh SNcncNFHeSx03aX3kqlRs0Y4VrJSxYEDi4DRKX56c4A0/503pqL3LchN/X1qnG0Af8PO MyKQKJqpotqHClJTIjADlRnwEwrQx7iJHklOJoEaQfcV+BoytnkAsW6CfE4W+DWbQmnT Xy6lr91YwMTNehY4fYQ/2YydzPRvZoYZi9ATTyRjkAnKybPlEGfQOUjpUHprOGOpb4z7 vMiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lqeVuRtN; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170903215300b001b83767e879si475388ple.266.2023.07.05.21.28.06; Wed, 05 Jul 2023 21:28:23 -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=lqeVuRtN; 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 S232330AbjGFEFe (ORCPT + 99 others); Thu, 6 Jul 2023 00:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233071AbjGFEFa (ORCPT ); Thu, 6 Jul 2023 00:05:30 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D658D1BD9 for ; Wed, 5 Jul 2023 21:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SJ4mFJO0hxa3evZr5DGeIlF7L0mgr5OHSWP5WAKUdSn0+nzd00t5grN4EFL7wqaRy5S7VQMkqtlJT/sBatVN9sU0Ns+Wc2U6FF07zm7cevKC/+s4EoqDLYUKyY4Fh7x1gQvZwZ0Pu9OyiK8D5fhOhW7SZnFF47kaJ3ndcITV5Srk7lt9jN1Ax8kEPs1G81jAwRpXzbyHPrXdzlFqqghtLaUEijRf2FuFqkGHmBjKSAuR7kw1zH1cRWxvQFhnTegqJlqKyEcd+aHslgSjM+xGJFVSg7Lw9UcYr43usFmCXuAuCCYq2d8NV0qwdUM8vEWDnvpf1dQgBL/2M/ByHHMWtg== 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=F60DtyyxcXu4qEz2ynm/lRwj6z8vRuMbXVwcNW0mlZw=; b=QpG1Hbw4gdqB03i20sUQcjxvrk0bBB2ZPLk4wHynihOw8ECAr0S36/Jb6QioYgPqSOp2rHgx3Tl2axymAyc60pegtPyJhtIZ2szaqGE7opXlQNZOvOfVTkhRaoF2cOzGdcJ8wNyWOPB/EqjaMBr7IOAy5TCX4ys4m+Hwlqe9HjldeJ3zmpV7ICfCbmGiYH9ElHNugnCuN39KLbXJihAuwuGDKjgno0ErBxJl8EyhdTy7VwBe12G19doKNNTisjKVEB/ATsILrqDU8aGHub6+qekFViNmcBD+Otqm2kzdq35UiFfS5qhsC48NaaSQKi3gV9jjITtj2A8HAjKwRA6usA== 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=F60DtyyxcXu4qEz2ynm/lRwj6z8vRuMbXVwcNW0mlZw=; b=lqeVuRtNMGOgPGQxWp7p3/8UO1NeXg04pST+27o1+O8qs92ucBzCalnFAW7NQf6pKSNiIAArybACc6rwVcF0a+OD7m0N/EZEBLrnUQZLnOxn2dSnrxt+btJWJ3FC2qgiYWid3QLgQDVzzp+2sTH+g6jKRAY3hfTMp6gBG7sFTzg8LHBQ2CobgIL4BwVKUelCdY2OyiwTjxpOcyDfw5iupJdj3oruWdxuUVg9Mjj8VNbzy/XY9qMVZxJoy4qpFWKue0AvfKGsjbdO/pv1+BourO9aK1U6xYOeG9qH/EM8uwKV6k0W9RtVDy2qIa6qjJ6VWX/v7KpTtPR+Y/BM7wuUGQ== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:21 +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 04:05:21 +0000 From: Yangtao Li To: Srinivas Kandagatla , Heiko Stuebner Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] nvmem: rockchip-efuse: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 12:05:01 +0800 Message-Id: <20230706040504.34057-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: b3892b29-7c27-41e5-b060-08db7dd6375f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f3lpRpGOrOFtY7KNMTtcU0KP/eVCsmIpsKW/ntowGEjkuhKq74jjwErdLD5c7/+0QM/tN0UTPN78ieuPBW5aa44gfWVUifqQ7oY/YZ+lyuZrsWS9Vu4bry0siGlaXMDBxdGDr/WVOFm1bOOBNNsQXDb3XrCGyYKd0KlB9tStLXkk+CGbhHxAO8b8qtHEX8sXLPAgNmVCr8fxKTnnTtCnyc77o5/8YXv75Ogc9PNVQ9gnBd5CN277lqBnJVwdC+FdgnZK/h9Mr1I2YyLHMaUlHr/fhVeS3krv55aQLhKlii2C9DxY3dwzFq8riaGzd/m1E348ch43cWHiCf9hMYl+k7VvtrvVV7QUbodt6fyoGORx45CZCERhcHJAanEPCqChM37Rtf6FrABYrY9jsWgKN7bGyUesuMib+uBFmsHGZ/gv+qmqlZvOwgPx2ma7oAoG8vel1HWYo97NWZ11pl/CerM2CC/qh6cne3yfJRLGuyOr54YsHdjRTgj3nQBt5f4oqLbRAWCbI/yqu55gWt9QCVQAzvmGMTJgX9yO0J/mVNlok4NiID1jpmxejWho3DN+/SAex9TZxAhAKkI5jllJr3Y4CJ36SLsCCzE/BQ/TH3g3+jCIBVtC4ynQ94mroJUu 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kv7CJ2ZmZuwkbMhfQSPjJF5UjBy7OIq86WdMZWe4tKZGUlaEwCLasZa/22RrAB6TwuXW18M7MnRVguHkmhA8BtQh12aCO/pAz/gU5wMD8P8fgtzw2TATpg2U2xncVoFZf5lYgmr8wIQzeJikaqtPuouC6KSLyGVteHy98NgzORYyMNwSBVbilKhl1AxnsousJB0ZYwd6W5460+ONlP8pf4PjTMFbqy2onC+XhmpxQNFXTWh+dwS5LNvhKwNMM3RVDbhW1tENIBrUF/uLT0RhtsY46rj6EpwSIt26qi3P6Q7D2jJTtU8L4em0aLNfQTqAg7dswjS4lPENRuPhvaOFLxUBwnsdjRXIzJPMRXBGfQu62sPjKjPh0VBVCowbgYsf01Yg+Bssj80bzwpZlX3aunbjRIt76uPnZ3yCN4qFE4Aem3BTtsXV5Hp8zwYA7lHYY4tKjeA0MsfOiQ5vyNK0MCfDTL0IcofTsdkl7LLh4DQMsZfjJb5pq+5ZYQObkGGK7dvA/nDiXtT2rk+KVTsXRrEPakNR0I/17Qci/tuGLaDeMldD3m2cMJ5fF7MlWCJNDyuIk2rsyQwYW954LE9mGbV8I3HNvI4IkK1dKjqYLgOvAUTsHNloAKG0M9Bg1Qq+CS2VOhmGQOMoWSyaqUeKSwGzYpFFeNTYtFk3/W17+HauxKgoBIiRnwUrxKD82K0773eA42sfnCUus7p8dm9jLg5SOZX5ZU3OR5o9UEy9lmhj1ZErvrZRkxuk0DK2OWC4YZkZgeDM+BQhgXvMRJSGs1ovbPfS1r7q/KC7XY4DA9bWPR66gLUFpVsWo0SXyPvK1lC82P1mRmS7qEEjwGycORFc/Z4kJVOiEtq4ZHryvgaHCSo8Dx0z3/ROlo82CQ/xx5XNYuncTfPJMlN7ZGgqTp/76W+9dBVqm5M1vZ81Bhr41UInxYoEEepzgRdLAw1Jy0lv3Gy/ITlL5SRHOKzkp4yqAVpsdUBdeJKHnYGFVrdHJzhiNPfWnE7BC5/frgNdImlSFFBLVSwhiGz9tFTFeZRb9ycxC05nEcfEBU1F/jBmt48AKu/HdYCOuGZr72xRbObvioI42SICpVL3a5raZY6SYiSxR/hzIFCrBAXzjtZ1YmFwUJg/jk974uklMhw9ZUfnaygwNz4dXQZpzWlFSv1WlFImnDobraNIznBXJBcgR6Nna2zh0kA8k/nWSdUPEmYXuje6uHTq3wsabLx/AgUkmxqPRN27zkD1WAN03PolE6FhQN/gqSxUY2UgeCzUb2NJnh8yIYiLvW8mpCU23Pu+31Ai+LH/urO8fLKlVlafmOcpTsIRmnNv5lrBtgOSilVUPqFL3JbVPicn/0ddH8tkIPCtrkKfGcodlNtmyKpIIeNMAj7dzutrmVReFMX762d8HEW9lt7Hrr23JWAlGN09jF2bl2saJIgZaUcfaM0NARyroS+LQd0T2d6vvzcE0slfQbob1HY1mUXgsXKHnSekzIeAEuwAVzcIyYh3H3RMlhFsd0mnLICXzRsIuy7LdDXei8f8+DLDSPhYChg4tUSBFZSNUKBewQHvh3r5bdXhrb5Od50QbaQo0It5FMOj X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3892b29-7c27-41e5-b060-08db7dd6375f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:21.0731 (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: 5b6q4OhwG6lik8oMckUFHpR3mlzANLvMWZPCt6iNrL2ykHlnvzhubezwarxZsvRQWEkiPK0tdFmln2LeCh7i1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770643997094159516?= X-GMAIL-MSGID: =?utf-8?q?1770643997094159516?= 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 Reviewed-by: Heiko Stuebner --- drivers/nvmem/rockchip-efuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index e4579de5d014..4004c5bece42 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -267,8 +267,7 @@ static int rockchip_efuse_probe(struct platform_device *pdev) if (!efuse) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(dev, res); + efuse->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base); From patchwork Thu Jul 6 04:05:02 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: 116503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2306221vqx; Wed, 5 Jul 2023 21:28:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfVzPTrAa6YEhDA6Z1Uiz6eIsMtuTqtFwppPAYje0HE+RcdTPE3m14TuYoYoOqcT//6jVm X-Received: by 2002:a25:1456:0:b0:c39:9e09:2c71 with SMTP id 83-20020a251456000000b00c399e092c71mr678212ybu.41.1688617703763; Wed, 05 Jul 2023 21:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688617703; cv=pass; d=google.com; s=arc-20160816; b=hdhJu6sYxQOVHd7xhryiWHFsl2+BzQYi6dIXsQdeydB5q2VPQdC0PBQTY6MFrRrFsC KMwUorax0tEsI3hk77JqytzOO4vkFVefeurRPYKW0yhotZzmDHCp7qhHayTlHZt3KnN/ +hKCi1wfmwLueGJdCW79wcGbUsdtptGKYPytHwvlu8a07y+OrySM7hdq6MPcmNiICD0S fQ0KOdO89maJVcLAsgHMy/iOITrnEYy5FtCbQOy5TRN2Gcry6kwQU0KF32k2XFmZp+cr U/KnsJYR4lE+YDctuN38mVNdT2s69cfS3aEhyeeK5uQ81hxfFJFPx+j6B0HODvcdZ3ni oc5g== 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=FkTq2z0Iylwy/vekUuST655V8GxepRvM2f0waLcVSBc=; fh=C7T+pBZ4fPpMnSqXRNV0OVk45kntoLtdh3hJpJczstA=; b=te7g/O4ZL1Y2nOjrmK643HT/zpvlzTnODo98dqu0kxHoOGDBaR0v4EXzZpocEE2Vgx SLlSLO34bDsXJFAcnNnRX9a8yyRixnpKU9/f7Bx4mmH0bqZDkj+OT4E9VZGlzkpHQCMz 3n4IouKIxmUDUToUnTBS81hbYnJk6cHatexn+ID3bSYsLPmHwrvnvcrjtSo6kItpQzu+ F0ALHngWpSctPHfdEcHghk6607vLdQkBLecpXWjYjkfZVoSY6/JLwLE/qfFjcRC2cAX6 Bj/JOH/rLbvZXbyjdmSkBzQH1u6t8x3x3EkxOnxtVNlugpSwK9ze5UkzaU0CtThIr9q3 fwRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Re6yO8n1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a654c02000000b005348b4f79f1si611641pgq.345.2023.07.05.21.28.06; Wed, 05 Jul 2023 21:28:23 -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=Re6yO8n1; 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 S232414AbjGFEFs (ORCPT + 99 others); Thu, 6 Jul 2023 00:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233045AbjGFEFo (ORCPT ); Thu, 6 Jul 2023 00:05:44 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF2A1BF7 for ; Wed, 5 Jul 2023 21:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9Z+JYKKEL2Vv4HLnR8KQhN+1Kad4TlnML5GI7rJ0F5W99qWEY7wnzPPiZ5twUqg10IE8/kTzsLuCR1h0O4voIGhMBN647l6Qq4VcWmM45QTwNrHm7ETgwGQZ6DI67VKrL6ekq6RqDnAFqeovG4Y117yUthYuYTPz6Fo5Bo9G/PHZ0MHLq52VhWfibzgxkDsYsMkvc7iJ/6MS8n3v6Nzr0m7WikWTSeymqv1CkoR24DNH2ysZ3YqxnAGPmj3Rxnsqe6h0YDM4qp39da4jXBWamw1Kj+uaam1Srjfa79kgFr7RAWjzobsvOzJXWOvKHoGCK5FAmOsHBPcBu0jA2VyHg== 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=FkTq2z0Iylwy/vekUuST655V8GxepRvM2f0waLcVSBc=; b=K1dBBfi6PcJmLyOFno9V3Fh9QIl+3b4U2rnwoLhduJARDK9cFNstVwoXkrTP+EmDVEhT4cnZny2X6mKpbILwigbvWnEXeT6LSUgFHIJRwCem7bkSj1S2ScZ7h1UXqTpRDNFOoZlBDqDqhQWZgL2eOkinGZxKsIPW50u3FrZghPJjAuBMlibwcZC1iapvUaONO/1DldmVy4jqjpbdM8Ukn1CNPSn+1o9nmHFauXYdC0vHAjONxaF+LDG6KctepnZhDchaL1hv258BF1pm0YBtkGCEdDh/uHn1q6ArGdSUAmUzD6vojsuMT/LZfbmSywhtxrp6as2Ga6KuyDdNhr4XYQ== 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=FkTq2z0Iylwy/vekUuST655V8GxepRvM2f0waLcVSBc=; b=Re6yO8n1RSgF4gwsFI7GiYntydVZwEAlkrNHK0N6uq55BvNmzPNhRlyBjVHjXGAYM2pXZLjAKL0U+WjQhq6QPuoIu9uzaFR3ahVZx0ySZ6aGldb09TGyyH2zGJXbHDcnLrvzplNpAs3KpZI+dsHN6TSVvdXt5ZucoaMzEkrRdKXl+daA34njH1Si73ACTKYhrKRZEFBDkRTgoTR6h+48O5eg+8HVBvzcn45qWNwfw+uR5J9A7Zstj3UY0TpABvHUqZlkYrgdWjQ+KCa2sN5RbJ+lJ/RTwydLODL+7tZH1JdJ7+Y+a6JchxnzSnq1MB0MmP2gzLMdLiiSDpU3eCU/DA== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:24 +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 04:05:24 +0000 From: Yangtao Li To: Srinivas Kandagatla , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] nvmem: stm32-romem: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 12:05:02 +0800 Message-Id: <20230706040504.34057-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: 10536c9f-9d7f-4c23-54fb-08db7dd63986 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zmvGdWSODpwVa6uYBPacC0uZSfWoM8RYvrMRWkfhr1dh+GdcBjrgsRVx57pbkn5eeXOk6PMAf43X7bLU/81KjLo2AIecFuddojDdj7AbpkxC+Wy16S8gOQdiQEQBtKwbqb8oX3ch/HSNZElGcCgFdjm+A8Y22ZA+ki88CFYOUMVVdFSlkxevENqp37nsYAx5QbidMTFVNyrqR6+YUfIjnjW7pyH4JxH48sO3mNU6aZFKpXJT7pfLuTO1UgzIwUolN0H3AAIDRbW10PVZ5Ag7fPL+gx3p9NR3o9mh8XcsMVz7eouEvOnYMq9KIU3pRkNdssnr/aTvnA6o4v3W+zNSefjifWB5OgA8cg5Ut/8tZLkXWBzeph9IlTBec5Qn+qPHipLdaqDtoO2ulJYvQfFGGGrlsf+zIDYyEzu/LHEKuuLYGBXCpNqqBlYsAMeugLpJG/8GGxiaobS4ku25yxB6Ppts/HGkVzNp+qRvddRw4vvJjKYI9d9foXBCVxKXpb37QOCJrhUIWog47DmESJFRRt+yoUjihHsWcreyzM/X8ruWFVeGEVa+h8ZeZGufQK610AuntjmhS2OscySzNFVYG7BtKdVdk3Gg7oq/q0SsaAdP7Vj5xiiHcu3sFggaDzaC 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VOjyVOH10mXYEARadDJ1jc+ecAJQ3+Kz3nFUGilpTNm/WVYBXD0oiylu9QipHU7zNbpxaAU+lYHWeAfdoOcxhvt4ULzRBVE9zR9imnQBaZdv31TcMnNsgGk0QxXjY00YoaEzp4q7H9jE7Sz/o4lEfJLzhtlBUYsSWFwK4ryKnFdhOAp9p38E5+zZK201RdBM537KsK33NkCfOY6N+FVlvDqJPJH1hQT3A1GHo24XwN5KvnUfs9cg12X7S7wgKnXxHHIJVGo8Q6W841ZipNeFT+q1RBtiRyRHoPHMXXLckTQINX1oNtQ0NB0mpD5hERiNj8u59WBTm1A7+5J/ZDvzMCHeVGRzBbEWklRVGP3pV/Nh8Z0juE86+9MsVhRYswBRyhoSw04tG2G74cVHDQhsytuzvMgsrIuzJfkNSreBA2t5SmgiRFBC/tV813cclYLiCDyq0Hht85LsyCudl9R2DPILY135Ay9ra7EQtHCiX+L2e9HUFI9DvGGRWid5dJ4U+q4Eu7vcHVpBoG1UEn4iL7PwPsCwCQ0RN9YkqidQfbVLJwcFDMyfeFdXJVOC+rAdPPvAftFMJ9tEw99VF74I/RRoJOYL6OTOph/vB0DaRGfDUgyT7XSWV4aAwo1yGXEgumr3MkevzeHnQesvr82KU+tkllu2MnO4zikYuA1geV5gR5SCKvolzKsbtXEPrmxw7hR0xEiBJjgUny5Fc0aEYGsiE5/+ZVDi9ynwIiyZCo2Rlds86LcoyZwQnykHB9TrEjBQLm3yAJNIycCsj/l10ehfXSSpIJuw6UO3zeJ8bnQSFoDioaQLXsVtuy/36UXngioYnAnMAJDZZl9KTMKvWkU8P0kN2HKzKENHLxYHoxNiWF8evHSDXvRQ+VFPQM1GUWorAwc6l7uCvjShVrdDVSI0UI0NTRuAJ/V1f+Q9liFdD+x63PMv2rDIcAMwkgHzfTmangRS6043y1XV3DQLBwT8uS2K1S1PUBmDeTVmx3arK6vXUjhaXdT2VETRXZJ1aqj5Lz9/Gw/dP3r6ObnklC3ExYSxg3V9t1GVSjM/KLML1jm0Ec2ZBuEcDTZjETN0O34sqLqKkxgPL7K3wjMWcGIYci8myPUUWfTQOcSYjWXW4bnNTKMD58wQr8OtqiFxM74bLcX3ocS+HqBcGTlxd5coC9zfIZ9VZQTBmKhNn3MFSR4DoRr4W0Vyb6UAIK73WiePJDkshmVXHJI30eddyO0fpw/YzsAtvteMR8srnzFkN74tNfYz2RwEtZ9ZsP/Ss6q9MGlbuWfUWB5WPTOskJXEdOpsvwNsTfnSuT5G7EOl752K1duuOx7y/EQhlRRiWYEltzemh/Qd+B4PiDmbBvPD1tNdQ7z3suER24UdWSFKbEx7Jh5sYwXiyc+sgji7NXhoO5bgJR7EJlpb9vtoG1bo7+C1jBWBNVYI+OKuEKALOK1JXXiKH16BYfUZM3a97rN3nqCuyM8jJn3rnmOvmN7jsqMTVIh1ZVPnPmBckNZ4F76IcGYVq6D2L3DV/PXjenJj9sB98j6ZnQEidqAsCjroQeXqmjOzHwTKUiFUjrhTl55HIEDlohCKmfAOWDxZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10536c9f-9d7f-4c23-54fb-08db7dd63986 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:24.6805 (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: ea/G3s/H9nUYiTxPaFKGIh+CjTXrvMrEfZbPAI9nENf+rYNobzQR38HETKUKLkMwSr+EkydbcdcDDcnN67d0KA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770643997363219860?= X-GMAIL-MSGID: =?utf-8?q?1770643997363219860?= 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/nvmem/stm32-romem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/stm32-romem.c b/drivers/nvmem/stm32-romem.c index 38d0bf557129..0f84044bd1ad 100644 --- a/drivers/nvmem/stm32-romem.c +++ b/drivers/nvmem/stm32-romem.c @@ -196,8 +196,7 @@ static int stm32_romem_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); From patchwork Thu Jul 6 04:05:03 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: 116505 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2314531vqx; Wed, 5 Jul 2023 21:52:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHKwbF/EepjowObP3rbz1TKhBZmFbN6E8ufLzA1Oib08zQD6PAFeqnbEeztP54oYN5fvg5O X-Received: by 2002:a05:6a00:134a:b0:652:a91c:55a0 with SMTP id k10-20020a056a00134a00b00652a91c55a0mr804244pfu.25.1688619177646; Wed, 05 Jul 2023 21:52:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688619177; cv=pass; d=google.com; s=arc-20160816; b=Zs1jOwFlSdhDjOQ1mshnpSfsvZaHSpxIalmocFX4C0gTpyhYfyPbQRLeJDiDAVA3eS guW9MVmFHd1k17LNB4hMdHBgIw8g7qcxJXgCqWoCVoJuY/SPQcB0fg58OdTrj/lN88DF uTUeOFX80kSvD5NEAGmO0f8JDTHg6hHFouXYF0G34vj+b4QTmVntlDIS6dUs5AEc1hw9 5JtGYB1eTjcujX5YS0VFa/wS5nrZ3mtUkGWlqp2nL+VGvtgzvSneztobGm/KjODFppSM 5g/JJa8Sa3bhkQERNne1SlnT2ke/poRe+lC3dfouh5WGtrdKIiITH3FvM5daApPvjTvm vFkg== 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=U3ScmgkAuJvkeXR8mK5+Kd4Z7X7zbvWx+5wQsJdp/lU=; fh=PGAnoIiiGcP6MQVKhySZ5dPGiyt84nagOrK5M0EFEtM=; b=IRPaqV4CA03aUBSdp6so3hy/hy3RQFEJ6k8pH75gUF1XnSSQ+TXkgWyv7Y/aY+sZVl 2F2fOQL+hNMro8kXXpzp7edrSh/9dO0rKXlLWbc+LROYfvn5Pm30ubxjm8Qa9A7Q2Jsr pwOHn06F8W6rroN0V9NPiRHncFGgwCgx8Q1z3STPM2O50mBbiWYmw5Th96iuWuOrLE3a 4yKJNyVkg0k/8KkTDXWTHiZ8zdGhX4/mzEaXul95ruIZzCVpCM1pnFGcAbpuRKiO/B2m jPx3oqDY/b98Y3DkzAZRRU92PHb4T9gKGxejhZ6qbdMDzk4WTNKoe0CtcCix6WZ28kQ5 nf4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cw+AuzQk; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a63450b000000b0055aff745fe2si663905pga.406.2023.07.05.21.52.38; Wed, 05 Jul 2023 21:52:57 -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=cw+AuzQk; 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 S232528AbjGFEGa (ORCPT + 99 others); Thu, 6 Jul 2023 00:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjGFEG3 (ORCPT ); Thu, 6 Jul 2023 00:06:29 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 884971FC8 for ; Wed, 5 Jul 2023 21:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HIbVsHbRXNAsZZ4hZW4ioJXCE0hVtP6jkwVI9Ugp0e65BiUxxdmL2yRBHHiut0lDfnXzukkdo3dj0ksLopIfM/51qHeSOrbeb4Xxmp1pY6DsZRuocCzgziuGp5Hey7uwJkEWkY7/fToTM9Zpl/jfVrzJecsZVc2rJn+NyH83ofRG9KLg6C/+h2jDJHZS6Twk89fWcSH1r8JfVoF+kdNr2hgPWre3e+EKlU03n2sfZm3UgBtSlw+6Q+AX5JbBTC9vJjLLwRJJMqY4hroPDFuiQGq1nSpCF1RK6ntb24xFM925AxggP2TL+KwN5j5kbcTxo0nDtyF8U+kVBD8r1+0fXQ== 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=U3ScmgkAuJvkeXR8mK5+Kd4Z7X7zbvWx+5wQsJdp/lU=; b=ZjaICIEkHEZTlTS+6GWWitm5JuqKeFkrEkEvvAkysDR+0DQSKpbKLHhqlhW/tohha6APAYqB4HqDb89YswaCZjXDCs5L3uyFlsGlBcDmz4x9bOf9aK50u4UZkNPBgQ0ihNi0WkJG96oBm8B86jIKC1CcgRyyR6KEbtIK6KL7T1oyKywJsRRPaUbUAx+PesonhmEJz/KJoMEe2JcPIJQu9AKoDNljcbsSVYbKGpt1XO4PuDg028LQYMceTwOfGoHO5/NdQq+NCv1Mf7kRXy4aevtfIxWpe23QdQsV2QY6SNVr3aA8GVtOaBnuSn6I/Cofre5PpVr48BhOhuPIoYN4NQ== 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=U3ScmgkAuJvkeXR8mK5+Kd4Z7X7zbvWx+5wQsJdp/lU=; b=cw+AuzQkoklb1BBW71w0raqwBx6Rre3sj5ebMfTA7zsgAHFJ/xtvtKnoB/rEHn/dWpg8uEQ9Zkp5BKuQVzQALhGx+uGJ+zag4fLLe6fZA3oETYskFVk/Lu1yHSdWsJNpPwrUOYPX2FQhM1Lt911hg7vAevLXPHe2b78TJAuX0kPZAy4BNR2Zk5TTVdEIvBKsXEqsjye+JaeswNh+6Uc8Ua7ueL8RbIhIEOMaNTQG7XOx/kkh7d5PQDpbUzTfSUV39eMIGrvhNXcY64eXwzN5ukQYCpf8wLAKn8QZommwp6QMTaFBPc8EGDab4rXoGvF7HB4sBVVK8DNic4Ve3bBoOg== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:26 +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 04:05:26 +0000 From: Yangtao Li To: Srinivas Kandagatla Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 7/8] nvmem: qfprom: do some cleanup Date: Thu, 6 Jul 2023 12:05:03 +0800 Message-Id: <20230706040504.34057-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: accba1a6-f2fe-47e4-0505-08db7dd63a64 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0tHcQfxt95RDlDGAZ5ej2uaJRbQDUxvlY9NLSYeaEGRqF6b5JWEdTtt2tky3atzMm490kxALGyUlIEW/lLH8i2Fg9LOkFCizOAQi18+5BwnuPB/0SyqeN3j1XetqW7pzIwC2Cl/FHal/1NFtOX2lOZ8ZtmZ39J2RaPqD0Tee8ZIP3vc6f+ru3cGZh0fsg/O5javEcyg6HBE5FRUdJabu4Sljdk2+0KjX6EuZrz9MGqGfD9p4peq3GHM5MJ/ckvQigVPJ2o8dvcpxkEgUMx2jhVQA7vft+XPUAv3O7VIaSrz26hG55QkXR022g6VgfPi1QijC44kKEqUUY1Al7U6jV0O6FzpRxEvAVbnbmv0oy5hI2zov5jmyWAJO1siTvOtk5S6ocP7vuOfBOfTbjwuAefjD6Jx2Ng63IVPxw/Oafv/RT6QY9RNfxUtXfsdJ+aaC6I1cZ+oBVTs65YqQ48eSQw6h0i/XSg2JFuMXFEVBx249KVywFwIhkJ8/5kmg1ShLMSovLtVwiO/WZxDc3HoVZ+ipp+RjQnu1MQKykzW2dOPuAnVPCinB3nVLisnhdWQ2TU62ABHxlvmaxi/4JJqdczhwQN8eJlZIn3CixephZ4MkLokNFFjbI5T63EMwy/xZ 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(316002)(5660300002)(2906002)(6486002)(66556008)(6916009)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qEdDsI2/pcG079lezUXnkniUz86Y91gO29vFnjHXg6TXiImqtrsrRzGw8sVxEdj7nSl0fEvhwTH7GYvQFaQbhLT3bThlPOCF09GqZ3Zqcxcb+Yrn5kXVSpKl2OmB2f2in16GeemSTUFKh79hYKRvN/MWVbA+SwIKcqMU5aqLoQoW1wHrVmcuIRwf2MnDjw/9IwhCwHl28RLneJbrqfeu1zCRwf2g0lW+cjdyRv9UtdHjJ4IOPubeTZRam5eIXVSEB3pEAfkXUEv83B8touz+qrU/jICPZdH+r8EMJP5/UxTU586n191bxqsnGfaZES54bieJT0bncyFlPSIcMk1ZZhdY4u+oHIfHH4Ve7tgdJmy9MEitkJhae8pGzIQjhPOj6kdSd6gfuX9r5kEWVGPmDj3gm/21dfjhm9ezh8DN+ahjZF88t9CvY+jmvDKwo/p87Y+8dR0Qru8bzL9lPblIPoSh1wrNGKfLBCRPm5g9112GXWXkKv3ElT921Ho6TGVfk07aeXG9ZLKs669Ymgpwgbh25IX/4d9bPjVu+KkA/Vyi2pZ93ZO4B2fRN+YQCbCsakQqw345NcfrdTYa0POT3dB5VV1FfIMmyof14hmN8l4SQFgZCeO8zO5W+rVxrqFBLCdS1m/98XAxUX0rh3DUnOHPwoq2DIMHPDDKWqknXimkMNa5Vhxn2h9pOY/hU8kcieOMoAqDbNoFCzyf8yHT5GzTB0z+8PxLpVBlv03OAVeUjD4pe5GfQA5jE2ovPi0UMsqihRXQeomY+R0JazPUNygaNmDRWLTy07PbuycquZgryIsberV+dQSYmNNYkZHfxZLs/xNo7ki1vgd141J3PZ8PtbV2E9Za9AkCpRbPz8B0kMAFlbK7/jk87inWRuemwyaG59kiLhrLNyFvvrdWdxRibjXIIk7Uq0nvCEVYl9/hCIwaU83yrnLocIpDN+VtqnS8oMr91KJZf+8WP/wX+YSA8bNjSsbYnWBOKInIzZwKBPh5rW/MiJXBwXV8HOm5pnZDk9/Wbdem1r8+06zwATsiY/rLXwnAa/Ia6gmilL4UVjcsIzmwVvBwbuNLOvnxABeHasUfOKJuNHCdAkwzNp6I5Hvh30xIRXq8/VLvWXen7/UxiPZGZisIu5gEW6bOsrAR5nWHRmK/NUILQG2q+v45nWjr/YveYSMmNtRuiIvmGCJhp0dGvPHNt8If0ezcaOH4oskmX0tjI+7cjQuWFR9/gvQx6hcqINaiODiqhM2NvHjsRCSKN/tBroAuxk+L6iW7JXq/DPj6+oGTX9rRlsMKV8qqhoGA0nmZx2cB2+b/Wo1PaJoJDaGPC/98xeWSas/llpMKiVy+hyA0K/fRGFGcNvqH6B9vkRFMu0FC/m13YUCFAI/VoQLiIXNFQWXoZmkz+niuyVL6OKMdEc22uz9cwzTvOSjOV6vULJbxxyG4bu5+PLCHBBqdHmV+90dXbw51qEIRCDHbgXTqnKuoBCNoils4sj6rv3WKnn9OMlWaxCRzLp9OT4DiBXSwPHp5239x5gVDYZgd43k8Zey2KVGxlTpxLL1ybDzf1LH5tYpEPNuVVtHU0MqNhzeB4DsA X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: accba1a6-f2fe-47e4-0505-08db7dd63a64 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:26.0556 (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: TPOlkKj1nBDWwnHdPTMvVfGEpUi2d5kWhrELvNmtKiRobYqTH20MF1VDoFGAT1NohV01crCeIHW/bDqT2N0yDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770645543135059464?= X-GMAIL-MSGID: =?utf-8?q?1770645543135059464?= Use devm_platform_ioremap_resource() and devm_platform_get_and_ioremap_resource() to simplify code. BTW convert to use dev_err_probe() instead of open it. Signed-off-by: Yangtao Li --- drivers/nvmem/qfprom.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c index c1e893c8a247..14814cba2dd6 100644 --- a/drivers/nvmem/qfprom.c +++ b/drivers/nvmem/qfprom.c @@ -374,8 +374,7 @@ static int qfprom_probe(struct platform_device *pdev) return -ENOMEM; /* The corrected section is always provided */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->qfpcorrected = devm_ioremap_resource(dev, res); + priv->qfpcorrected = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->qfpcorrected)) return PTR_ERR(priv->qfpcorrected); @@ -402,12 +401,10 @@ static int qfprom_probe(struct platform_device *pdev) priv->qfpraw = devm_ioremap_resource(dev, res); if (IS_ERR(priv->qfpraw)) return PTR_ERR(priv->qfpraw); - res = platform_get_resource(pdev, IORESOURCE_MEM, 2); - priv->qfpconf = devm_ioremap_resource(dev, res); + priv->qfpconf = devm_platform_ioremap_resource(pdev, 2); if (IS_ERR(priv->qfpconf)) return PTR_ERR(priv->qfpconf); - res = platform_get_resource(pdev, IORESOURCE_MEM, 3); - priv->qfpsecurity = devm_ioremap_resource(dev, res); + priv->qfpsecurity = devm_platform_ioremap_resource(pdev, 3); if (IS_ERR(priv->qfpsecurity)) return PTR_ERR(priv->qfpsecurity); @@ -427,12 +424,8 @@ static int qfprom_probe(struct platform_device *pdev) return PTR_ERR(priv->vcc); priv->secclk = devm_clk_get(dev, "core"); - if (IS_ERR(priv->secclk)) { - ret = PTR_ERR(priv->secclk); - if (ret != -EPROBE_DEFER) - dev_err(dev, "Error getting clock: %d\n", ret); - return ret; - } + if (IS_ERR(priv->secclk)) + return dev_err_probe(dev, PTR_ERR(priv->secclk), "Error getting clock\n"); /* Only enable writing if we have SoC data. */ if (priv->soc_data) From patchwork Thu Jul 6 04:05:04 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: 116502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2299331vqx; Wed, 5 Jul 2023 21:09:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7StdN3Bj5w+01pnP1fHjaEJU0sZhbvArFt8TRkxztOx6iE379DVZR8ZHHy71XXS/aI4Ca X-Received: by 2002:a05:6358:999d:b0:134:de8b:17ef with SMTP id j29-20020a056358999d00b00134de8b17efmr722712rwb.18.1688616575773; Wed, 05 Jul 2023 21:09:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688616575; cv=pass; d=google.com; s=arc-20160816; b=uj3r7n3vgStWbs3COYy8mS4LWOOec7kJoryXMnoroeGFVRpSfVdU4hRcD306Bt/xoo tD3VLoTcrwFBDCNZZHRLHFBRsICJbmLNF0M7kdkzRrG+c5/7MoSZSwf4fHz7U+DfOiSc VM8aUCow9aFXM6mnDum0pLRE0sd+cPTHZcy+cXKuhh/XQ20d3L38SI3zdGuYcAt+J4qO hLCoKXsgO7YsBfqqd/ujaciZCKJcHUF/mttbD3HuOVxm4TjoL34FgafgUQ8Pe49qLCrk uPMoxd17D3XsPQcu/iwtd5NujdDouX1toXpdf6DvGKAZzpbQ6MhV4vrE2H3wMLiGhC7l F2OQ== 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=Gp6i3XVwslbEcJdro/w6HtqhqmPXyj0JhfOdQi64F8Q=; fh=r7JbW02Hj29OOEqOvQqayIZ4obejuxMiDXSo8ALQxp4=; b=yYzsxDzrttm7RF+MAofxKjBONyXRUIIaD1iECsTgBLGVy8gsaBq6cbbLvzhirj6nRH HQHXuCFJy8jIVNasYYfEIEL/QMJmmk2YnE+4rV1gb9P1KwofBfFgtbvycrUTKKyfsK56 YM+Mgf75GsnrIqQ3POQdGUSmMPJjQp7mr0EDM7dKBJR4gkzRgQzyy7vDm9JthtskQhPx CiPzqPVhlnjrV2nUyov3iXMUDN4VcITAnCvSP/Iilm3JxvpF0UQ5T4vSgf0sa64VJFcY WPCHUsf4Y41zdcF/yVv4wgoE7i2+aknJcLhwR+2UuHMeyW2WyQhpHkts5WbOC2mFXwvL ELHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=MCGMp+9A; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i187-20020a639dc4000000b005533980c059si652660pgd.494.2023.07.05.21.09.22; Wed, 05 Jul 2023 21:09:35 -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=MCGMp+9A; 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 S229632AbjGFEG7 (ORCPT + 99 others); Thu, 6 Jul 2023 00:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjGFEG5 (ORCPT ); Thu, 6 Jul 2023 00:06:57 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D1D1BC7 for ; Wed, 5 Jul 2023 21:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vph6zPWkZngcJxwN8KAEcnwOYln+pb1Q/dRc3KQ0cVzmGT/lo4RCbLjyoW53OiRjidXMy6HXfRrIjlPAqRp/thP6Vi1g3ghwLiViPFhLNC2TphWbeb12I9kEHdhZAEBtlZJJNhzbq/TH/mIQu0/sVoe9I1jWuQfw6VOsYIkgyJBnADtN9RlLchqz5uEKrYK8N0pO4Ep7AxunwJzy+ZEtHrRBg2aB/SWwou1zUi0Lb+QQeTacpHwg2mACfkVhzR783e6/kq3EU3ljg78t2ML1SyMFKJ+5DHQmrVJ9k3jXGJ4AxYzn135ULfFn8Ml2n2uGoEXZh6vhKMwyQgtamtd54g== 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=Gp6i3XVwslbEcJdro/w6HtqhqmPXyj0JhfOdQi64F8Q=; b=UIinEzqsrj33yW4MTYSYrnm5UYfBIg3n3Sm29pnO2npCfaOjlDcGFgxCbyoHzf5tUbVmvW4mT3Lda+Ei0Ld/J8C22QoxPdJT+JBxlGydn/hNjFqAEqYWkh96nNQ/c+6UTn0+ppHK1YPpBGySfIhqRKCdRWVs8+wwh+b+QpoKaBTzYiohVHXxcxMGT16TpjcKY9sSpLv+w+PD9y+OmiQtmyxSW7ggl8dXUtai9Qq8wjSTLAs9tgA9T0//bZZVf4ugxh14r0LJ10Ov8lAM2pvDYWik06YoiZpmOcMF28ydNCbKimUhQahGL8R94tjvO/gilO6+46bmfjwtMDLhqNjpqQ== 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=Gp6i3XVwslbEcJdro/w6HtqhqmPXyj0JhfOdQi64F8Q=; b=MCGMp+9AHVXpttknlzWgPEhI8h9nT1jVAMtFR8atTS2m/k/s0UYY5odLnIdz8NU7UZNsJfUE8mR79353npNVx01Ue+FCet8mh1x3vsMi9/yMvxoH/aUtknp+K2wuofvnmJMBiAj/YekheRiyvr/ZzoJ4ED39k+0DZ2Gsagd/L4N5Se5O45f6Uz/dFO/HBDWEAlaSWqeH8qh1+eCuCXkqbroiNW/C7svO7U/FHftS8Dl2a0NnHB2IReGRtrFUmN0J7inxOZR6o6vsVtFDgkmGy38CMZRqTTzwBKPNp9fKpsjEUMMkiHykyW9BKLSYgSHomA8cnWQPRUwPNbSTB8m4Eg== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) 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 04:05:27 +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 04:05:27 +0000 From: Yangtao Li To: Srinivas Kandagatla , Kunihiko Hayashi , Masami Hiramatsu Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] nvmem: uniphier: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 12:05:04 +0800 Message-Id: <20230706040504.34057-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: 05a68796-df39-448c-d8bc-08db7dd63b67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vjmBrGEuy/sIQ3HvoIGOq+PvRjCwMNf3R9NzX4A5+fzbdMLB3BTTfzsIuO6EFZnf7OK4ZvwI9jpM7ZiZuHzPUrplm1DezDP4g+V1AleaHeM7IrIaJshCHt9fIjiv5/q7sLQHA7E61HTpoMWRKX1Hazol+U58GyAUmMZea4rC84606nkwiSWlZV8FfLfBF6LUKmZ17MV6y0nIdyOyoO9I7/sLRjOfN8N9YrDoNfkbgdBNKrLWGg4N9LEGTn0wlTv2khtPItYoe5x+oYzlUrNoSkcGwgqcnfb9Vg68zMMUwTcaX1heyhOR9/n+a0/BZYKdtfsyQ+HbcG76toLJS/b4qXW1ZPvVqlN8HkndctK5zaIC6850BJAA2moM9dgcGlaPJvqAjTW7/gztTQnoY75yhVSOomlKN8OfggyAygXbx2xra/MXr3kJblbPqxh2zkEI1P6qaVdRpraaBCPGKXGxor/iNdKuc84PJIq75LDwrynKXzQLD01iP8rbLi6lMlfh7OxNPvyXe+qjM3rfBBsWxSdr1hf9ilGI7fckN10vW0UygijHGJ+3siwHOoRJDN70Rnr7J0fexYNA8yiROjVe5X8FHTNmbgNrWZKwY1hNEca1Si27u2fai6qsjdo+rIuM 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jq3+6dvBS81FscUTR47FjYYeOM3emZ+0yueHzsinnqvhdzXaQDC7mZnaAydNDvinG9b8lIaiGV5tu9PagaESfbtet+W+8f/1SQ8mbaR5dTMNf0agBINiQYNpXyGQvDym1obq5JcVTtQdc5XmN76WFzHzciVquhpIbh5hrZxWVHPBX+32YfZpTuRcPVKh8G/oKW1BIJKHYpXud6b4xJy2jA7tNOzDdqsDNbfxrYDWbRiJ/+8eG14e+9+vA5CW0eZGSywA5PbASWRXYG/tRsgF2/0Y+07S6VM68V2+WUYq+g479DW/zkkT8Bdp8MSdVHT9/jhZTEijOpaYizLdii6PfPPI0enLVrNtMQ42Ny9laXNVLLUKVhCOGZ/R64A3YfO4vepPEawJ8OTaLWKefMmQ7L6oTQuv40kZeiwrsSuT6FRHg9bE1upb01DRakcBHDzpbVGwOidrWrsAa5DWpEtvEC6mjjF4e2TJs7xwaWISZ2OKUjr8MvD3QBAzBosdMLcs/IGd6Yykit9QnW9nmEK3jEgZ6qA0AFgXUbL6XjhnswK/UZJRTnC2HQGM6CSoLJaLHuFpBw6kTdRYXPE2KzcHNOekJAMcNgn6KOVDVqolo95EEqXxqVUsxfrzT3HVAWCMWPOmiLlR2lBhaSUGWyp2Knpcb2ZUbbuDY1ijhjZ1UdXIYKEUzLMfOyTlmiSTYTXK5StaK7k5GRKytTEHqxUl9yJV9RT71JCxPgsW9aCqfi/IH0wSghwllwLEJPwBUxPDjWshGXyGqkYe72jPcwU2nMa0JHEtij1HFaP/v7OBbC5591rQEJcPfS+51XQUv9WIOciWTEVORwCD+GRxpq2em5Lhf+52MgCIiJwRa/W5FTvtUAAWu5v0PY0vKo7bGwkgxSo0VoI/LY5SWUBQMnAzKaX+bmpPxQGp2UhsKhltNr+cxVQLq4fmLMHtbBUbp4Os50hue5Ioc5B6Re5NwmX6U80gEt72lmeEbv0QUsdJAccVOGke1CttNO7l6v/XAGAnas5UKXm3lr+LCN+yAUX7vGUsuuDvNJCPvccZqjw02tkUGnqCt3eElOwniCB8OLLuyjiDW03fXYeDKruyUImJi/tG/I2CorOP5G8SA5gzM10L1Ui2qddyCrtZTRxS+BM9ndThhC7bChhHU5QUz7p7TuHxpFWQcUNJuYSKqbdFKCFtnj2fO1nSGRYyjUoNoLny56YvguqIfsGAmZsNA43kAVK2dqxDE7FT9UL2ali4o+zTrYZx8NsJw0NOdnSpDbWMhtXnrUq4lYe+xYYhcZe/5s4VH8NUaZ8Vq5w4jcCNwpnk07jyNCyTrmKfzkwCrkfQgYzHJ3B0UvtJ15WGimf5ksgjrxlpy+SrDKWTgoH/mOF6v7XQAkvfZCIOXJzQ8peWmX4lPLkNTN4QntqdafvioyG6RRt/R6hRnzweBKTeN/As+stvPy8FDAAT25hJyBgWLrj45TzOo0ULshhfUCkek+u1gn91vnSMIGpG2xggvHaBsLgDud2XWuxZ5FKwduH6EzSoO1qcDGy5hnfQ94BBbTT+bzdv/pHEC8NjsPJ/CTN4l8gWXfeFIcyf2maImad/ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05a68796-df39-448c-d8bc-08db7dd63b67 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:27.8226 (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: Sq0eLj6c57+5v+Sm/vzWx0Gv0VXhyai1eeyOishzyr9JRMN9cmImptDR+g1HjW8QP3PmOVPBgbeRVMbxOQGy9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770642814615299556?= X-GMAIL-MSGID: =?utf-8?q?1770642814615299556?= 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/nvmem/uniphier-efuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/uniphier-efuse.c b/drivers/nvmem/uniphier-efuse.c index aca910b3b6f8..0a1dbb80537e 100644 --- a/drivers/nvmem/uniphier-efuse.c +++ b/drivers/nvmem/uniphier-efuse.c @@ -41,8 +41,7 @@ static int uniphier_efuse_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base);