From patchwork Thu Apr 6 02:34:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80029 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp727064vqo; Wed, 5 Apr 2023 19:38:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bNxAG1phZnyGKiiwX3EoHXm6+4ZiHL/knNqVWkUz9P6Dg+NgN6Ek9BSZH4os4evYH9RUgO X-Received: by 2002:aa7:ca55:0:b0:4fb:e9b8:ca5a with SMTP id j21-20020aa7ca55000000b004fbe9b8ca5amr3329450edt.40.1680748695697; Wed, 05 Apr 2023 19:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680748695; cv=none; d=google.com; s=arc-20160816; b=gBoiTBZBho/9PZrnUlE9tkh/Yr8+VwQ8x9uQGKJL8EMhFqzHQbfurbDDppxPRHLCNC l6dVmI5tFoJs2NzIdoFOelgdGpo6l2Gzf5OmPJUgr69DqMJAg6r4W1UcSb805EFOYfew hEYywZ36hIejmK7AMRKiriENn33U57XB0Gx3jaw/MkMOPc7SuK+yVyfHI4oRZnJT/eyq 0bUyWQKzeG1zhcw2F7bf/4Zo5ZLrflZ8gwFlU0CmK9Pq6XHslcW2lOHy1n+fZOuvOYpW d/b084vz8iPC2pgWyPgTvADWcuUcd6wWUX23ZuUK6zl3Z0RHmgfqO4cxKIohCHkDEtJE r4Xg== 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 :message-id:date:subject:cc:to:from; bh=BcC33GGvahulnMV3CUOlxzQ4OHdF0euUCEIl980ZWbE=; b=L375xmr5UtFQMwQTYwTp6f6OIM0s5yrPDmq0ACAdcFn0cSsed6x/IdsOcX8e53Rxgy WxACyUzk0jGST1mBL4GcTNhuPPmJsHx4rEpHBSUMGUzdFeaWHK7Tn9LxWkmNsvpLUK2v XuPCKjY40ddAHe5OKLIdWj6ZApco0nfDalzIbLa6CaNQ2+w31GeQqHxvnGuhiHjlVFgU JwqTQBmJHlkaULWhg6pJHet/JdJoXwPzdPwtZkfClLGj2w4zLxQMFOHSj4Kn9yDTfAVF 64cdgHGtKNuEPBEGe2ThyaBbXI7L7H6NDNnmaVnl4v1M9NMde/V6HwP29rEao98g5XAx wCaw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e22-20020a50ec96000000b004fd29e75157si238248edr.343.2023.04.05.19.37.25; Wed, 05 Apr 2023 19:38:15 -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 S234192AbjDFCez (ORCPT + 99 others); Wed, 5 Apr 2023 22:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbjDFCek (ORCPT ); Wed, 5 Apr 2023 22:34:40 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 682AC5BA0; Wed, 5 Apr 2023 19:34:37 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VfR2psz_1680748474; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR2psz_1680748474) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:34 +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 1/6] fpga: manager: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:27 +0800 Message-Id: <20230406023432.124792-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762392744450592630?= X-GMAIL-MSGID: =?utf-8?q?1762392744450592630?= 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/ts73xx-fpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c index 8e6e9c840d9d..4e1d2a4d3df4 100644 --- a/drivers/fpga/ts73xx-fpga.c +++ b/drivers/fpga/ts73xx-fpga.c @@ -103,7 +103,6 @@ static int ts73xx_fpga_probe(struct platform_device *pdev) struct device *kdev = &pdev->dev; struct ts73xx_fpga_priv *priv; struct fpga_manager *mgr; - struct resource *res; priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL); if (!priv) @@ -111,8 +110,7 @@ static int ts73xx_fpga_probe(struct platform_device *pdev) priv->dev = kdev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->io_base = devm_ioremap_resource(kdev, res); + priv->io_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->io_base)) return PTR_ERR(priv->io_base); From patchwork Thu Apr 6 02:34:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp727143vqo; Wed, 5 Apr 2023 19:38:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZA5lq3kxTwgasfRvOSZbboUcWolR5Jjey7BGNuc/MdgiPSar/xeerdfOgBl8jCTKyiCjaW X-Received: by 2002:a17:906:3c4d:b0:8af:2107:6ce5 with SMTP id i13-20020a1709063c4d00b008af21076ce5mr5159425ejg.35.1680748705282; Wed, 05 Apr 2023 19:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680748705; cv=none; d=google.com; s=arc-20160816; b=RZoFyVNov8Yi5CORnQFnsVps6kC4kb5InmzeaZqeZ+5hu8PkYNM0TSdoLzXLM3Mv+c sZt4TJcdkVrFnOb4J+9jzt1TvYuL4C5uwTwme6hKE4sCKUirRv7Xxu+OD9a37Xoa3WZ9 V9RjGl8dsBg/cJSsIJaYkNoQpRMLP+c1BGjxUWPjJl6Kpegj9jIxVSxbqsz2Dqg7Hlq5 kidnyIY9YgpD4K7cBQEFLVOl8Xt2cxiD1e40Rx2aigqNUnu6sYZsPGUVQ/wcPUXZtzEz Rm0+oala/Q/qzI6UUC+gzQi7E2DTFdRdMHNqk/FzFjaL4O5nsVFhSLrQypbx5Czz4KTZ RY1g== 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=iQFzlS0DNzYvqO8l/cLnCcGayOrpAvm+f7a00xcvgYs=; b=p7gH5uxaemCL9ELDu4yQpGnFK7E0nLDeYSciA5I4mEmPcTkv+QpwKiR9SfiLYrFrXp 6e9SxAuYHjSjLO7Z1TOxRC6taKJn7U3UJU6Y04V51lJ+HD3PFu0N0+6BRfhS9AtVIsXH 0FcWRohwbVulLdjr1NqOuH4OAAZymtVSMv1vaBBbG5XGrjvaKK3hyYwCJP1WUYUz/fUa V3zVeSJzavwFpmwXwMZiHN/NwB3uLNGvPRW6GlDx0as7hWxwXSE0KGhtxsjMNzws4E56 TbT9wIN6kUJbLpLn6YEA+JKbYdrs8yhCpjQDFTmI4HP6cT5CtMkODhGtQA/6/rz4K6Tm bNSQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go19-20020a1709070d9300b009309c7f5650si364398ejc.23.2023.04.05.19.37.58; Wed, 05 Apr 2023 19:38:25 -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 S234723AbjDFCe5 (ORCPT + 99 others); Wed, 5 Apr 2023 22:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbjDFCen (ORCPT ); Wed, 5 Apr 2023 22:34:43 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C53A5FC3; Wed, 5 Apr 2023 19:34:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VfR1.hw_1680748475; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR1.hw_1680748475) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:36 +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 2/6] fpga: manager: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:28 +0800 Message-Id: <20230406023432.124792-2-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762392744450592630?= X-GMAIL-MSGID: =?utf-8?q?1762392754173410407?= 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/socfpga.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index 7e0741f99696..723ea0ad3f09 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -545,20 +545,17 @@ static int socfpga_fpga_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct socfpga_fpga_priv *priv; struct fpga_manager *mgr; - struct resource *res; int ret; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->fpga_base_addr = devm_ioremap_resource(dev, res); + priv->fpga_base_addr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->fpga_base_addr)) return PTR_ERR(priv->fpga_base_addr); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - priv->fpga_data_addr = devm_ioremap_resource(dev, res); + priv->fpga_data_addr = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(priv->fpga_data_addr)) return PTR_ERR(priv->fpga_data_addr); From patchwork Thu Apr 6 02:34:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80036 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp729262vqo; Wed, 5 Apr 2023 19:45:15 -0700 (PDT) X-Google-Smtp-Source: AKy350aQMrDsMMSnAOvL6wmvE5Zox1uM68k1ehr2GSwt+UHSxQgDb+80Aka217m9fMwcIICbwOdf X-Received: by 2002:a05:6a20:7a86:b0:db:9726:8e46 with SMTP id u6-20020a056a207a8600b000db97268e46mr1217039pzh.54.1680749115633; Wed, 05 Apr 2023 19:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749115; cv=none; d=google.com; s=arc-20160816; b=QR7RtlVVmDi9reUysEg/6hXTYECgnO2y3gh+lfkyrGaURlO1oYwau9bTmOX2CUSMZS vez30g5eu4pQH3mCgBo+US+Cmov5o3XDN6/rIdK/ZOqfKGS/CSViKrpeMrsC12/4m8AH hZvdNbzVrbKv0T1046aP0AFEOxgY69kH8cENl48Y/k3AixW+Y+SJw3rcY+LywLSw6kec u049yBJKpe/rmoJifVmv3rjiyQIfLY6nx2x3kdVbHyeKvZmBaKmsJpfXybpcxVuqMcgO 9UlgzICzFwRm2mCmh2KxB/5CcOiNEJJosONiJKrM3R7drpre1oXtXtAWQ6aBux6GCROa Dglw== 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=2NIx7aNv36QdD5SQGdpOEWKhvYvJv+XUe7uOBMYKMcA=; b=cFq7UdpDJk2OI3x9let2sIX36ltbDCXn5/PJHoOQuDInKCEhCx4gwZ0mSaBCdAm7OP QNCabwj6zZqj/JuOP/+VssMyCuC5jUzj4siLHZAJgZ/y/3M5vPuy7f3stT+ELB46ppP1 zVQebz98mKql93Bsc8hfE+Gvo70Mc8tWutaQBwDmHs5CzQlaHcvjLVd74jlv8A5MvoQ5 sEik0ywA45ybnogjPNA3rxqlVcn3IOLfbtflVw3a8oZCBYbHtAbfbb5MJQ5Amf+PPdC5 3toyoLE2vsv4YQVjqdtwqFlzasJ3sv5PxK6XohY6DR/jQjY7/m5ed8e8bY1j44zMnEwD 5bbQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a63d451000000b0050c06b2361dsi175773pgj.72.2023.04.05.19.45.03; Wed, 05 Apr 2023 19:45:15 -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 S234898AbjDFCfD (ORCPT + 99 others); Wed, 5 Apr 2023 22:35:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbjDFCep (ORCPT ); Wed, 5 Apr 2023 22:34:45 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA485BA0; Wed, 5 Apr 2023 19:34:40 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R561e4;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_---0VfR1kSd_1680748477; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR1kSd_1680748477) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:38 +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 3/6] fpga: manager: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:29 +0800 Message-Id: <20230406023432.124792-3-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762392744450592630?= X-GMAIL-MSGID: =?utf-8?q?1762393184570219863?= 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/socfpga-a10.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/fpga/socfpga-a10.c b/drivers/fpga/socfpga-a10.c index ac8e89b8a5cc..cc4861e345c9 100644 --- a/drivers/fpga/socfpga-a10.c +++ b/drivers/fpga/socfpga-a10.c @@ -471,7 +471,6 @@ static int socfpga_a10_fpga_probe(struct platform_device *pdev) struct a10_fpga_priv *priv; void __iomem *reg_base; struct fpga_manager *mgr; - struct resource *res; int ret; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); @@ -479,14 +478,12 @@ static int socfpga_a10_fpga_probe(struct platform_device *pdev) return -ENOMEM; /* First mmio base is for register access */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg_base = devm_ioremap_resource(dev, res); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); /* Second mmio base is for writing FPGA image data */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - priv->fpga_data_addr = devm_ioremap_resource(dev, res); + priv->fpga_data_addr = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(priv->fpga_data_addr)) return PTR_ERR(priv->fpga_data_addr); From patchwork Thu Apr 6 02:34:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80034 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp729181vqo; Wed, 5 Apr 2023 19:45:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZlTnI1BpL5lCdvmk/9ocxtFebiHGkyMYzfT1AgTHrFOEG9f5jjq5Mz4o7eQ3oL3cUsh/LX X-Received: by 2002:a17:902:f10c:b0:19c:dedd:2ace with SMTP id e12-20020a170902f10c00b0019cdedd2acemr6669302plb.18.1680749100433; Wed, 05 Apr 2023 19:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749100; cv=none; d=google.com; s=arc-20160816; b=B+beVKLjo4ICy/yIB4DM0XA/3t3Vrwd5EjMyR1jMmAhjt3eOHrf8WqmDbKEWAY1Dii goKm+VaQLUdP4v2VFT7t2uWsV7S+2YUSUARNLFmr+L8aRas7/gVwLyuqbgkl/vY3GfJI 9a1wOXemMTT4eziSUOXdCtp5LJQc+kO0Ejj+7rWazyqzzBPl1CD6ATe+tQN9Az9jZTTk ErdImOU6vKjov5eJcb5z/815gNpNppThRNh6T6p7rBqdcXpw3VIV6F8THftYeYe3jyCq 6Q994mWD8UiaHQ/h75N0WVUOeE9CAAfsC+qIPHxDleCttuxmb3EqWxADXUkL3HZatpdS JZNQ== 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=oNSDeipTQkpBoyqEsfCTiP3bjs9kuWJyrl1mgNCdB64=; b=l+QrY+gKmTzU3Sh9VbZCBq/+G8ALULohhoI0NL6Wukunh1W+0BVoncMnggeWoUkPnD KI7wo9qv1Vn8Xre9go9NfLlQQJz/zpJ3OVI/8nJt9nVm2gYiOLilchTA/S0eg9Ou8VtP h5YUEH/f9ygT42xYX5O2GYow17Wr37UaRgKNX7cQisd2Q2QhT8c8l8m9ZqbCxQOAcV8Y n1xVEO1YReMK/so+zCY+bwv2Y5s2i+SHdRRKTa2XlIogmAQgF75pVQJ4lKyz4rXUWFLn VMF7BSkzNCJNkj4J3NBgq8lBuD3OEEFe8ctVAYIMsS+C07dRwG7lhlXSydmrsHNoDlHX npLQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a170902704b00b001a216fddcffsi445119plt.645.2023.04.05.19.44.48; Wed, 05 Apr 2023 19:45:00 -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 S234863AbjDFCfB (ORCPT + 99 others); Wed, 5 Apr 2023 22:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233927AbjDFCep (ORCPT ); Wed, 5 Apr 2023 22:34:45 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F445FDB; Wed, 5 Apr 2023 19:34:42 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;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=7;SR=0;TI=SMTPD_---0VfR2SYv_1680748479; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR2SYv_1680748479) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:40 +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 4/6] fpga: dfl: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:30 +0800 Message-Id: <20230406023432.124792-4-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762393168686438225?= X-GMAIL-MSGID: =?utf-8?q?1762393168686438225?= 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/dfl-fme-mgr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/dfl-fme-mgr.c b/drivers/fpga/dfl-fme-mgr.c index af0785783b52..ab228d8837a0 100644 --- a/drivers/fpga/dfl-fme-mgr.c +++ b/drivers/fpga/dfl-fme-mgr.c @@ -280,7 +280,6 @@ static int fme_mgr_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct fme_mgr_priv *priv; struct fpga_manager *mgr; - struct resource *res; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) @@ -290,8 +289,7 @@ static int fme_mgr_probe(struct platform_device *pdev) priv->ioaddr = pdata->ioaddr; if (!priv->ioaddr) { - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->ioaddr = devm_ioremap_resource(dev, res); + priv->ioaddr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->ioaddr)) return PTR_ERR(priv->ioaddr); } From patchwork Thu Apr 6 02:34:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp729148vqo; Wed, 5 Apr 2023 19:44:54 -0700 (PDT) X-Google-Smtp-Source: AKy350YPpWZqJIaoSd+Kln7IOpVuShS5oR8tKMF+y20BaQCc6Dy+Uae+f+8WUBoUOSUCdgGU7Fyw X-Received: by 2002:a05:6a00:9a9:b0:62d:c459:bc52 with SMTP id u41-20020a056a0009a900b0062dc459bc52mr5580089pfg.11.1680749094212; Wed, 05 Apr 2023 19:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749094; cv=none; d=google.com; s=arc-20160816; b=KWhzaOtj4oJQ5dIIhJGHFzSOUygiA1qzw6F15W0I2kIiII2nzyjEmCIDJjLB7jx7wM 7nerr8+BCWkj/tEjiLvr29IfEtFYBflEXfPTFI8q3Eg5p50rNajfn871Ces6u3UFAg+Y ercurL+qjtcg19W98najfo0O8njqjmLOsHsptXCuTPt9yxEdQvnET0haxIBdA1Znn3xD hpHgdh4HIMHdy1JFFeO3+4zuTjCiyXkX39eVzma8SoUJ7UPpU4FRMDrnJRxtwLwNQ3/6 JCQp02T5QmLBBruUmRh2wlD//aEHi1BB5x5KtjzNs/k82hhZzXv7ivnz9Ig5tMTgxz4L R5ig== 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=/JtF/I9lHljyAJ7zPGNTtKdgeZYphMsy+80BZ5EFWNo=; b=ELWPRuqGqs0DPxlb9nWukWmnqhEX38+i2w12Vr3aJ4yM06IRmP26romiYCk1nPFtGA diFd/XDc36boXZbSjpPKGiA5JxRiX4caYJYKiJqJzKK+jtq4c522H94ColgquXLCFHmT OGepa8uB/JllcEdfco7O6SbfBCeERJ15UrZLtApsUGfJqwcBZYrGrLbmSzOLh1XXbAJY D9V6jzuOiJxdNWhyH9+/99p/Lw+fAT3vBXfgmTBAG61XW/2aO7A0fpDWKgW6YZSRnyJn t4CJg2qhgJoxJAA4hHakKZWXfB4ofxQWutfcn0AtZDK88EsDDQ8iZAytunbz+xixAeer 8IbA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020aa79529000000b00627ec453561si268400pfp.99.2023.04.05.19.44.42; Wed, 05 Apr 2023 19:44:54 -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 S234814AbjDFCe7 (ORCPT + 99 others); Wed, 5 Apr 2023 22:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234280AbjDFCeq (ORCPT ); Wed, 5 Apr 2023 22:34:46 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696525FC3; Wed, 5 Apr 2023 19:34:44 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;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_---0VfR.WeI_1680748481; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfR.WeI_1680748481) by smtp.aliyun-inc.com; Thu, 06 Apr 2023 10:34:41 +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 5/6] fpga: manager: Use devm_platform_ioremap_resource() Date: Thu, 6 Apr 2023 10:34:31 +0800 Message-Id: <20230406023432.124792-5-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762392744450592630?= X-GMAIL-MSGID: =?utf-8?q?1762393161946912496?= 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-pr-ip-core-plat.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/fpga/altera-pr-ip-core-plat.c b/drivers/fpga/altera-pr-ip-core-plat.c index b008a6b8d2d3..a4b26286963b 100644 --- a/drivers/fpga/altera-pr-ip-core-plat.c +++ b/drivers/fpga/altera-pr-ip-core-plat.c @@ -15,12 +15,9 @@ static int alt_pr_platform_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; void __iomem *reg_base; - struct resource *res; /* First mmio base is for register access */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - reg_base = devm_ioremap_resource(dev, res); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); From patchwork Thu Apr 6 02:34:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 80035 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp729259vqo; Wed, 5 Apr 2023 19:45:15 -0700 (PDT) X-Google-Smtp-Source: AKy350YdeWy7EWXLSFffTRcR2vxKxhQ2fbSgcPcTLUjs4x7NJrSk+o/TgLRjYL18q93pDckHmSvZ X-Received: by 2002:a17:90a:e7d2:b0:23d:294:6a5a with SMTP id kb18-20020a17090ae7d200b0023d02946a5amr4642619pjb.22.1680749115142; Wed, 05 Apr 2023 19:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749115; cv=none; d=google.com; s=arc-20160816; b=FvXkfA5z3zYB/EFZrGWnxmhlNOrYgSqPCOhesPJQVgkWkSvUCkBrRtnhfcI6gFBcYU JSBUhaDs5VlQpJytSOYzbgmCogZ5DZJ/pfIJkVkIWFqmt5SK/iDwbSmTkBX4KBWqmS3J FKf0QrV1c6kamxw/8vLKp/1YNEjxnRAm7aAX40PEg3ZC5sxpwdL6CtFIvV7wYyU6wU41 xhrkfzHeDt1kEs5X0VYUjLa64wvHW178BefGakM/dXuXt5TyAmIF4Lf9X72F30LBKIEb x9gnda6V6UqneuNuCwjeZdo+5VV+MmYODzNqdVdvtUop2iouc9OI6IGqWudslOavz9ug 4kFw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb16-20020a17090b4a5000b0023fcb58b0e0si173683pjb.162.2023.04.05.19.45.03; Wed, 05 Apr 2023 19:45:15 -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 S234942AbjDFCfF (ORCPT + 99 others); Wed, 5 Apr 2023 22:35:05 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762393183936165238?= X-GMAIL-MSGID: =?utf-8?q?1762393183936165238?= 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);