Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3912272rwl; Mon, 27 Mar 2023 23:15:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YId1R4Moq6778OwZpKgi68DL/jb6siaQ9BXi7eSU9lbZR5MLkxZS5ydwxCOKu4hdWh3Bop X-Received: by 2002:a17:907:8b8b:b0:93e:2289:ecc0 with SMTP id tb11-20020a1709078b8b00b0093e2289ecc0mr12100316ejc.42.1679984102009; Mon, 27 Mar 2023 23:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679984101; cv=none; d=google.com; s=arc-20160816; b=D7a/53zqv40q2MIfpYqY928l4TbD9OQRJwm6eAQCQBYSE54gJX+x7ksFK7qryq6IGr wa9ruAt5g/7c8gHu/pHqBOMfSVKrmdlFBgr4nQuUKDdjO6zyX9uHEUCZSxf2K4g92RrC RK4h5FhWTDdbaUenGIGPbP6W0wAyl0/Q/MgSPGnhXDWmmO/dCGcnL3x5j+lBQVdwPhap nluwjIltKYfVsi5qe5kb4+Hfvex4YKgp6ysDL478pqzR4pkMPfKH1COE5s2n5oDF+83I lr6KUq3RvNGDgRQ/H2ybwfTGpLP6H5IjeEN6RlkowC0W6y20nL8plLucvK3Zj9TFzgN6 63Aw== 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; bh=ECeXf+tL4YbRdmizr5C2pwt/Nz2kAOeqnBsqnyAgoeg=; b=n2s8aquTRaK9KdSL6E+2ESER3jtwFjPAjWaA8Ko3IofSG5ebx6WvZOo/YWZrKtAqS5 afHGWlUshpqCMqOxQzddBL+LvPskSgiDVaxG6yIcsq6EiDEBndJS7TPw3fvnMc3GFgdm IBSphcuju83Y3E+3SkIihe3HMSW+MBW2RhNQj4oXzZfzcoc5soOXnmpJqlL6ZBGi58gx mkpgywUOSOHf99RB67Ruja12j/W69JjLL3woReGwmSmagIeWC3RXjzDwUil08Cn9j8p1 0sahmn8Cs+MeV6YIotoMYDWpJ90tplzowxpED2Q2UF8jNllB3V4EnJzi6SsWU1/3TwxW KSMw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170906938900b0092451ed6ef8si14731059ejx.932.2023.03.27.23.14.37; Mon, 27 Mar 2023 23:15:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232183AbjC1GKs (ORCPT + 99 others); Tue, 28 Mar 2023 02:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjC1GKr (ORCPT ); Tue, 28 Mar 2023 02:10:47 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC6B730D3; Mon, 27 Mar 2023 23:10:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VerrlBX_1679983836; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VerrlBX_1679983836) by smtp.aliyun-inc.com; Tue, 28 Mar 2023 14:10:36 +0800 From: Yang Li To: broonie@kernel.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, skomatineni@nvidia.com, ldewangan@nvidia.com, linux-tegra@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 2/2] spi: tegra210-quad: Use devm_platform_get_and_ioremap_resource() Date: Tue, 28 Mar 2023 14:10:31 +0800 Message-Id: <20230328061031.70140-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230328061031.70140-1-yang.lee@linux.alibaba.com> References: <20230328061031.70140-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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 --- drivers/spi/spi-tegra210-quad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c index 325b4427491c..bea376acea1f 100644 --- a/drivers/spi/spi-tegra210-quad.c +++ b/drivers/spi/spi-tegra210-quad.c @@ -1552,8 +1552,7 @@ static int tegra_qspi_probe(struct platform_device *pdev) tqspi->soc_data = device_get_match_data(&pdev->dev); master->num_chipselect = tqspi->soc_data->cs_count; - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tqspi->base = devm_ioremap_resource(&pdev->dev, r); + tqspi->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(tqspi->base)) return PTR_ERR(tqspi->base); -- 2.20.1.7.g153144c