Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1750999rwb; Thu, 10 Nov 2022 22:59:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+fOGxAK3zW/1eoy1rLBNRHqx12qKYIdZruROm+Lw+0dzaWcNs9tCm2FXTvzqG5HDtJINd X-Received: by 2002:a17:902:ea85:b0:186:8bca:1d50 with SMTP id x5-20020a170902ea8500b001868bca1d50mr1207722plb.158.1668149992584; Thu, 10 Nov 2022 22:59:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668149992; cv=none; d=google.com; s=arc-20160816; b=whHGwT4ZdTpR5BOpHY449DvzHu/5vABXnOb8gKVF2WBY7hf4NA1JfoygpRpVtLFvY4 jt/FColS0kPSjWNd/LqAeWNTarBpTgR4j1794QYVafuYijbVfaSWO4D3nk/g9z9Iy4JI h2TjIiDpmmop9lCEHkPWAIjOuY7wzK8fKQThly8GE9ePkqOhjddUHfoW0pieR6foDZ8K MOen6od+HF/papTtFrEYxr0KE90Uwf1RBPp+o2OOvgsiOuZK+trqAkmGRskT2HeBYIwL SRZbamqr/k8cArXZ8d/Ts23drUeD9JS+LmVTHJNuCczk7sDyFt+tX08nEayIC1uHgRV+ w0aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=NyL3K7w6k8hllQE1byq61+zgs7p2bTctyM2knXLJRB8=; b=M+Wj26MFZ0mSDQbYI0wXbMkXDijC4/kji8JeXwxZAV+sJHwPRyMO39zp12r1Ju3Zw7 XSNmBSTPEp1LTcE1B7bFSQUa/9OAJt9QE8Vi+AsthZ6fUi9pe/bXOQKEV05LPZWfvesl cOudXU4boTdGUqvNMq5T/eKTCv70+O8QD8L1tlSAkdPqylZ3WGeoQ8cQRTCdkql7UgTR g7YUkHYU8oP01R4MbkdeouqrNknx4PQOnk8jDBZDooHasRdqAW2nqaOYKFxglWVYk9Lg nm2Izsxn+4QrzRcb/i5u0KP+/SaxuROtMAlApwIf9qG3wWUQSColo6HumH0/SIONwLqg RTlA== 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=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 67-20020a630646000000b00460ea4393c9si1698063pgg.448.2022.11.10.22.59.37; Thu, 10 Nov 2022 22:59:52 -0800 (PST) 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=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232943AbiKKGle (ORCPT + 92 others); Fri, 11 Nov 2022 01:41:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232929AbiKKGl2 (ORCPT ); Fri, 11 Nov 2022 01:41:28 -0500 X-Greylist: delayed 479 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 10 Nov 2022 22:41:27 PST Received: from mxus.zte.com.cn (mxus.zte.com.cn [20.69.78.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5307565FE for ; Thu, 10 Nov 2022 22:41:26 -0800 (PST) Received: from mxhk.zte.com.cn (unknown [192.168.250.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxus.zte.com.cn (FangMail) with ESMTPS id 4N7pyF3kGPzdmYkl; Fri, 11 Nov 2022 14:41:25 +0800 (CST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4N7pyB1Tlwz8RV7R; Fri, 11 Nov 2022 14:41:22 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl1.zte.com.cn with SMTP id 2AB6fERK074210; Fri, 11 Nov 2022 14:41:14 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Fri, 11 Nov 2022 14:41:16 +0800 (CST) Date: Fri, 11 Nov 2022 14:41:16 +0800 (CST) X-Zmail-TransId: 2afa636dee8c66289f39 X-Mailer: Zmail v1.0 Message-ID: <202211111441162412524@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , Subject: =?UTF-8?B?W1BBVENIXSBmcGdhLW1hbmFnZXI6IHVzZSBkZXZtX3BsYXRmb3JtX2dldF9hbmRfaW9yZW1hcF9yZXNvdXJjZSgp?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 2AB6fERK074210 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at 10-207-168-8 with ID 636DEE94.000 by FangMail milter! X-FangMail-Envelope: 1668148885/4N7pyF3kGPzdmYkl/636DEE94.000/192.168.250.137/[192.168.250.137]/mxhk.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 636DEE94.000/4N7pyF3kGPzdmYkl X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY 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 From: Minghao Chi 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. Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- drivers/fpga/socfpga-a10.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/fpga/socfpga-a10.c b/drivers/fpga/socfpga-a10.c index ac8e89b8a5cc..dde2cb49e95d 100644 --- a/drivers/fpga/socfpga-a10.c +++ b/drivers/fpga/socfpga-a10.c @@ -479,8 +479,7 @@ 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_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); -- 2.25.1