Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1531776rwl; Wed, 5 Apr 2023 19:37:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Yx1ISP6IyX+oEnKMocUhr14tx97BpvMBi3unYaPcVj5Y5V+mSFAF+2SHdTBfZ+Guy711dK X-Received: by 2002:aa7:d4ca:0:b0:501:d542:4d0c with SMTP id t10-20020aa7d4ca000000b00501d5424d0cmr3824180edr.22.1680748648973; Wed, 05 Apr 2023 19:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680748648; cv=none; d=google.com; s=arc-20160816; b=EDfZwXlXyATUP/Ob27CgMVBWnw58WQH9fnouk8pIEMwT1rCbqNVXt2QzLDzV2qR5nQ qK213w4CnIb3id8oogiGBbrs6xP4jd5C+OtNJSFPrEFkwpZZRj0pFyfvnW/tQ8g+Ihvg JxEDqtRsq3EzkKUb+ketLpFIUGsvAD6uuxDnmZsfl01Krvm5ShIhqivG0DrddBV6l74o RBWr4h0e4ViERaCbf/KFwH2azkzl+aWbAJBdz40aO4Yagt5rmEMxY64IHpW7hEDjL+/5 1HzJ3s0N75MkHPBb1uCGeMewS9bwSn4K4Jqw3xh2hMqoK/Q6by6ZokNGHgIDmtfUG9Jd T1ew== 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=6iKzv0OhjPz389+MFkdhLQ7a1/pBmoGnk/onldxqj/k=; b=UxsVY8FDxZrAadzI9kjVW4g+tyu9FTeoSEjfGoJ2pzT3SYY6RNSg7B25nt++3T54hO 3P9vYGhYR0oPRJpJYbbkH0I4GKJi87jZNtu6H8jDCTQB6441omvw1DXTTEktLC3udmRM NboHSnB/Ryjlwaxdtsg4kzVNsYcNNHveCzQEhKhhDSYioxPqR+4iCcYOdNT4zrRqvOvp m2e0uibKHPcYywGHjAxyCQHMDRoNyByYaV9yEWynNBj7WSqwAcYatwE54VVzW6xTnxsE hoh4ZMvyKGLYSWiC87iKeMLbNY+qaP78fqazPb/fKPo6eEGrj7S0lTe1V1cr9NEanfHg DF5A== 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 b15-20020aa7df8f000000b004fb506ae6bfsi237077edy.247.2023.04.05.19.37.03; Wed, 05 Apr 2023 19:37:28 -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 S234936AbjDFCfE (ORCPT + 99 others); Wed, 5 Apr 2023 22:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbjDFCes (ORCPT ); Wed, 5 Apr 2023 22:34:48 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4917B5BA0; Wed, 5 Apr 2023 19:34:46 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VfR1kV0_1680748482; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR1kV0_1680748482) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:43 +0800 From: Yang Li To: mdf@kernel.org Cc: hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 6/6] fpga: bridge: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:32 +0800 Message-Id: <20230406023432.124792-6-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230406023432.124792-1-yang.lee@linux.alibaba.com> References: <20230406023432.124792-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,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 Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/fpga/altera-freeze-bridge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/altera-freeze-bridge.c b/drivers/fpga/altera-freeze-bridge.c index 445f4b011167..bb6b02ec2d21 100644 --- a/drivers/fpga/altera-freeze-bridge.c +++ b/drivers/fpga/altera-freeze-bridge.c @@ -213,14 +213,12 @@ static int altera_freeze_br_probe(struct platform_device *pdev) void __iomem *base_addr; struct altera_freeze_br_data *priv; struct fpga_bridge *br; - struct resource *res; u32 status, revision; if (!np) return -ENODEV; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base_addr = devm_ioremap_resource(dev, res); + base_addr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base_addr)) return PTR_ERR(base_addr); -- 2.20.1.7.g153144c