Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6300943rwl; Tue, 4 Apr 2023 10:25:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YEmPheWxD36QXHl+BB6o8UgGQN/pOagR8+NKHkGF8tm+R/o7W+tQs0pji0wBlbStmTX23W X-Received: by 2002:a17:90b:1d0f:b0:23f:1c6d:2b60 with SMTP id on15-20020a17090b1d0f00b0023f1c6d2b60mr177457pjb.5.1680629145858; Tue, 04 Apr 2023 10:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680629145; cv=none; d=google.com; s=arc-20160816; b=0HpiPTPE1QjeZBkpn5tY8CyG//e31OYs3/HoIz9Iseide6RoDlfJdzekYa9XFcIq4a lNUpH0ZkPu+b66pcqJrhjGFrUOnKp6hcHDsj1dZKz76UaXEfhvji9GWYIsLttbpV8oUD 4nXbCFOaPXDpDXPwWtcT16B929lOkfjy2KS+0H3BBbyy8n/XrbGF6rjxF/srrF+SSY+L tIvGwmr3if86Hi1cXvNFzAp4cLK9P3mrCQ6IuPIFTihSBhK0wLik90Gdae+fptr6g/en xPsRaIpeF9+wK+tXKnYj4VgdXe0Ugqpkxe3aOhHP2DTY/6JPqFT6mifLS79AlLSWkAnh 9heA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mFsfV7hsM6XKzUvXvJ4Lm+4Z62w55R1k2YUgVy5mdyg=; b=HR2jlP96rOn9SpyUmGAPig5LJnIhl+6BeNPKUoocMzfXy1KHy8oUBNgyFRTy4d06Wd fUZz14pi8Y8e4sHEJoVPFxpAS3TvHknyu5Wt8efRuuTiqNgmdmmRqzM61csNiXl0Vgqk 10kpL2AM/jnP3bvA4yRT0OWYSPv63OhQ481JiYoJyeEIe8NVR26J6jiLYhTQNs/HCO7E r87FchxsheElnBEtzf++3VrKSRKxYm3MjOyJ9wuYmj5584LhqdpmeW/hCxdzYCcYVkLo yU5smq+Lrqbn/zmZkES6oViXi16NU1VlNUuNeHnsRy6mwBrdpwY5+6yxo0AN96SO2NE9 MF1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EKmGUwG1; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a635c06000000b0050f55427e3dsi10752877pgb.701.2023.04.04.10.25.15; Tue, 04 Apr 2023 10:25:45 -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=@linaro.org header.s=google header.b=EKmGUwG1; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236274AbjDDRYl (ORCPT + 99 others); Tue, 4 Apr 2023 13:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236073AbjDDRXy (ORCPT ); Tue, 4 Apr 2023 13:23:54 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3355D1989 for ; Tue, 4 Apr 2023 10:23:11 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id w9so133614422edc.3 for ; Tue, 04 Apr 2023 10:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680628987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mFsfV7hsM6XKzUvXvJ4Lm+4Z62w55R1k2YUgVy5mdyg=; b=EKmGUwG1k8r9F3oL6NMW2rFa5NIEDu14lDh1zopBRj7aBtdPn6ev4Du9Y+y+cMmVtq R2oyw0/9YQ5WWaGLfkuJF+Xps4LhWz9E9+cuAmANFtnPsb4AJ/c1+2B5g2O54C9S/tMZ xLgKw3y1EQSS8z4xiqDZkHtrOyYYi7fCItjLHaq1Q+XwFJna28S1P0i3YNCXhA+vr4VK tCOAZNIJTAEd0eh3FEBo/+tAG1eikGoAjKyMKqr+gCUy33SB0auNm4xqYjfZBfbC+JdX OnHjMz6xtwSOI5X73YkQfMYg3rhS8DKhLcSuL8L7Ie7jDSz9qEbQm5vvzeBfkUXtQYIe jmmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680628987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mFsfV7hsM6XKzUvXvJ4Lm+4Z62w55R1k2YUgVy5mdyg=; b=2oxQT2VEQK4v4/Bd4twXcPFrMFWTbMHAhdV4VxGSqHYjSrTWBnEC1zCUsilTTuTw2+ 1Jk4spG90NV67xstYjLLm8J8Ryzz5REVJPqBMMhhG03qFQSdQy5H1FkACey7/y9d8sf9 5Jiagv/y3pnhSYgO+IrMAyi8KqY3zL+n4XGc9wQaSqKn+L6qEVct9fPnA6hW1XCuyjIZ 6dBb50Fy/oWjtFDLwMiZ7rkvDMYWYqYdNzajvXespIk1mmbe9DUW1dQLEKtHck7T+wr8 4j1HyeDntXy7aAvur3hwtf27HsF0491nv2sRqkXxg0Bn+5AZT/BC5Sch0LEJaN3t0Dvt QOGg== X-Gm-Message-State: AAQBX9cBJnMDk5Lpm4bvuh3hpexjNNuMAfOHnrEiOO260nAO6XmADCEx RUh++hqs13uE8VaYSOdO3Kjpxw== X-Received: by 2002:a17:906:13c9:b0:932:5f7d:db33 with SMTP id g9-20020a17090613c900b009325f7ddb33mr317322ejc.34.1680628987496; Tue, 04 Apr 2023 10:23:07 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id bv20-20020a170906b1d400b009447277c2aasm6208333ejb.39.2023.04.04.10.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 10:23:06 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Yang Li , Srinivas Kandagatla Subject: [PATCH 32/40] nvmem: vf610-ocotp: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Apr 2023 18:21:40 +0100 Message-Id: <20230404172148.82422-33-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230404172148.82422-1-srinivas.kandagatla@linaro.org> References: <20230404172148.82422-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 From: Yang Li According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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: Yang Li Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/vf610-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/vf610-ocotp.c b/drivers/nvmem/vf610-ocotp.c index 5b6cad16892f..ee9c61ae727d 100644 --- a/drivers/nvmem/vf610-ocotp.c +++ b/drivers/nvmem/vf610-ocotp.c @@ -219,8 +219,7 @@ static int vf610_ocotp_probe(struct platform_device *pdev) if (!ocotp_dev) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ocotp_dev->base = devm_ioremap_resource(dev, res); + ocotp_dev->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(ocotp_dev->base)) return PTR_ERR(ocotp_dev->base); -- 2.25.1