Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35073700rwd; Mon, 10 Jul 2023 02:04:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFccVoQCcYrxn37nMD56c5UHsFII6ZIzBMcZlEUsbDTv52u3qpMpaXcY0xpC9u5gFaD0vOn X-Received: by 2002:a05:6402:1616:b0:51d:7ed9:c65 with SMTP id f22-20020a056402161600b0051d7ed90c65mr9101165edv.21.1688979855004; Mon, 10 Jul 2023 02:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688979854; cv=none; d=google.com; s=arc-20160816; b=Lf/MXkM1zs423YP9RcVhgzwyTmZMazYbHKtFWv8QVnhawO4JHGiSxauB6uVKQ8k8Rn pQ8nd+QyE7lNlb7NKR9CcE5QFnMtIhbbKXLnEAxsA/27CdounoshlkQADt7CT+UHStrX bIKAsnmEp08kEDsEDVS8ePIvrC7TC1XAyk4cRQBcea9Q4rMPWWXvUNDG72Nv7XjtE4nm Alu3kWli/2Xp7thg5Avnqbze4pjxPm6bAqKfidMIc9NTDFti83jPuZMz+Z9723dBhRUB HYfXiXiyBTNX3TVw7ZExcEr5Ehbf+0iVA1KawYsG2zWLZcEcCnMQr+G0Pmu/3/CB/3r9 8AYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Qb0pulNH2cXefh3sfuVIrtHQMfVUd0ReDYOk/9w1e+0=; fh=0Lzt+awxXeLw8JFcBsazebJAJ33CLO5z3B9Ib9q1olw=; b=O25WYVOhv5vWEEPkbqHMUsq770PpJ650qDHdjlWmEF/fOhhM8IXAP1NpBqu5FlpfpR M+9O+KEVk3bwOZo52Nc1ey+OWzEthSLmO9deoUFHGhSzF8bQN4Z6MjIQ3FcaTcTfqSvR x1cDdAUHKiBlCORJ2/4CRSL4kZivTHIBHl/uRc9O7PffBf6ydaOq9/+Huot4a1fc27J5 mxZ4ZdEorSL23mGyI9V/aVgEAx2XoXcJ9we/2fX54fZRLEF8GMWsjL9qhagnj1RIqmnR S0TudhdQa+fZP76lAcvBLq9gKMBKuSwYvX3NLw/oQXrxJ8dYped+zxZWem17tcKrg95D rWgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bJWGBj+9; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a056402054e00b0051bfb6074a5si8538876edx.84.2023.07.10.02.03.50; Mon, 10 Jul 2023 02:04:14 -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=@intel.com header.s=Intel header.b=bJWGBj+9; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbjGJI4K (ORCPT + 99 others); Mon, 10 Jul 2023 04:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbjGJI4D (ORCPT ); Mon, 10 Jul 2023 04:56:03 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B13E40; Mon, 10 Jul 2023 01:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688979358; x=1720515358; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=664qAjZzrPJKlFFIMH/+AQs2HvURbTM/1kF3QMuprbU=; b=bJWGBj+9qksZOhav5Ni7OrIh1ecTti8R4zUxwuvBo6XCCVc2Mo64b+0/ tVjzYivWTsf2Se9epehGB69r0R4uSHuKS7+WDjuVD7p47hAc0ZSZBCoS1 BcrKXWnGXZbcedwvjh1+rsSFCfaMaBMP+/D6df2AWF07XlmbD12E+Vqrz cdRDq8QXRyBC9uiz6dWxoKACcFzLWf8I+u0Y+1jN6DhXI7f2ItpMXrmWZ ArVeNQJHbLOjyHq7W7KJYCgB+to2RqtNOctO1FqORmcVPveHq47AQ5WlA DOXy1soJNt9I7X5UEHxCGpWQPN8cbKKYovpiZF49LhAWy7xgXQ9bfG4L9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="427983568" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="427983568" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 01:55:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="697932259" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="697932259" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga006.jf.intel.com with ESMTP; 10 Jul 2023 01:55:56 -0700 Date: Mon, 10 Jul 2023 16:54:28 +0800 From: Xu Yilun To: Michal Simek Cc: Yangtao Li , Moritz Fischer , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 8/8] fpga: zynq-fpga: Convert to devm_platform_ioremap_resource() Message-ID: References: <20230705094655.44753-1-frank.li@vivo.com> <20230705094655.44753-8-frank.li@vivo.com> <73eaa72b-9ee2-3aca-b5b9-bc53e6a40467@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73eaa72b-9ee2-3aca-b5b9-bc53e6a40467@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 2023-07-07 at 06:55:49 +0200, Michal Simek wrote: > > > On 7/5/23 11:46, Yangtao Li wrote: > > Use devm_platform_ioremap_resource() to simplify code. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/fpga/zynq-fpga.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/fpga/zynq-fpga.c b/drivers/fpga/zynq-fpga.c > > index f8214cae9b6e..96611d424a10 100644 > > --- a/drivers/fpga/zynq-fpga.c > > +++ b/drivers/fpga/zynq-fpga.c > > @@ -555,7 +555,6 @@ static int zynq_fpga_probe(struct platform_device *pdev) > > struct device *dev = &pdev->dev; > > struct zynq_fpga_priv *priv; > > struct fpga_manager *mgr; > > - struct resource *res; > > int err; > > priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > > @@ -563,8 +562,7 @@ static int zynq_fpga_probe(struct platform_device *pdev) > > return -ENOMEM; > > spin_lock_init(&priv->dma_lock); > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > - priv->io_base = devm_ioremap_resource(dev, res); > > + priv->io_base = devm_platform_ioremap_resource(pdev, 0); > > if (IS_ERR(priv->io_base)) > > return PTR_ERR(priv->io_base); > > Acked-by: Michal Simek Acked-by: Xu Yilun Applied. > > M