Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35069606rwd; Mon, 10 Jul 2023 02:01:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaVzWW8bIF2XmELOlBk+3em9RJ4L7mhaTfYMvwaibmfWMLScETsolotQpjaGyJXl9hbgkz X-Received: by 2002:a05:6402:b2c:b0:51e:5254:1d89 with SMTP id bo12-20020a0564020b2c00b0051e52541d89mr5838237edb.19.1688979667980; Mon, 10 Jul 2023 02:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688979667; cv=none; d=google.com; s=arc-20160816; b=sLANDezDRrdffYF+Te5FtrkK7XL6G9VihEy/3L7vE4dQ0JDlC/nfu22xV4JVdltmQA HQgUU/9tSF9y2k8GfEceFbTPCSDFfB7ayJcDmwSx5SldrwcrRT7adI+DMGv/WFxHAB7d 17PdFyuySPyRnuIYkfrtz7PijnkGf6j8/zM2bCjd0LycAj/hs+B4leriU5X4n9BrTnOg 7bgxcdXl0cCj9xaUvNkLIfBVy2mNGoIY8qsCJVvQ/LVeLJrdCXnTBZiLLuXpGY7aE3XF +PUenNEuiWRV9VbPjKxMTuX8V797J692ij7qMbq/v9wyLVjr3AiXiJslhU7CB/yJwySj Gh0g== 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=qMUPjq+2hXuX+mbs+jT8VoIEjwkdi8hUjHwzpORcC1Q=; fh=eLTIRFjPPHRg4BJpod2dWtXqLAWJ7jRVJMhxLmNXSlw=; b=CVotuXUvDm4ZfUpeJTljadvDaWagJ3QHU+IrkJC2zAGBwG7I6YagrpaXrQ/T2/RcHp gXjx3ZAcHW5nIUIZ8GnaNr2z9a1TIow1P3UgeaMScvmhgaavgfddlm0SCgPO6Uz+MjDw FlLdlhgLvu59hvmdDKrT/vRim8MQ0CJJzRr9u0E6gXKj7yovLg83agM5a0TTBJSl1bne QqKbzdINIpPeso7ltTTUFL3z1eBu1/boD7eh4W/oo/lYF8EYypASFL4XppeSSP5ZBEcG 4WuznQpqEaLJ5xKIni1xF/W7HArP76Fj/RcTxp77p3w0BGta7/VezWbwPxnb+aWrsNdV HY3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W1hYOOgg; 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 r24-20020aa7c158000000b0051e0bc180fdsi7534668edp.455.2023.07.10.02.00.43; Mon, 10 Jul 2023 02:01:07 -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=W1hYOOgg; 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 S232154AbjGJIkz (ORCPT + 99 others); Mon, 10 Jul 2023 04:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233082AbjGJIkL (ORCPT ); Mon, 10 Jul 2023 04:40:11 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B66910D0; Mon, 10 Jul 2023 01:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688978390; x=1720514390; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Mh/SGf7MIOtuRngbfxmxx0FBXJ+TjttlQQwEUWCBbcU=; b=W1hYOOggg5D0YbyZkc32E/147PotIJCSPCdAr4uH55/Qv5eVClRvnlhq +DW9lqHAWIAcVognwFrrV90h6uRjp8/TwiUTWt+Sg9F18Pv5lhx22AQ71 no2DjhbteMWGO9lHexy0hp0Ru8C9oYT/Mh4WVYLCBnl4vSyWuMPdg3Tm2 eiTZ90ml7DO+ZZueGHrgRcp+wh/lOh/6LXVezMAVfoRbkLn5VDfW/Jru4 LF077GGA/CNRtUWKL6n3Zijf6MezgYG8pd9rcn3SVsN5mq/2qkHQrkrJ1 jIuTTWkR3qa3+RobPJIY1EdTKQEjoEI34yHt64i6ZC86kqvdL/i6/HeX6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="430362044" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="430362044" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 01:39:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="810736494" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="810736494" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by FMSMGA003.fm.intel.com with ESMTP; 10 Jul 2023 01:39:47 -0700 Date: Mon, 10 Jul 2023 16:38:20 +0800 From: Xu Yilun To: Yangtao Li Cc: Moritz Fischer , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] fpga: bridge: Convert to devm_platform_ioremap_resource() Message-ID: References: <20230705094655.44753-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705094655.44753-1-frank.li@vivo.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-05 at 17:46:48 +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li Acked-by: Xu Yilun Applied. > --- > 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.39.0 >