Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9312874rwb; Thu, 24 Nov 2022 10:52:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf73KTk3OCUCajRBCt/YfPNejxs+bF5T2ckWswlzEhOKbZpe/NI1RqbXvbOWLfIOJOTQ/JWh X-Received: by 2002:a65:4607:0:b0:477:31bc:348f with SMTP id v7-20020a654607000000b0047731bc348fmr15360571pgq.72.1669315928340; Thu, 24 Nov 2022 10:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315928; cv=none; d=google.com; s=arc-20160816; b=RFDQyFLkXrprfaQkzB88Gb/OBlPkiaqutibuwHndzS7Chz7nZpp76MCVIvmy9JXHN7 MCrAPWdmpjc0stZ5HfXObJ2mYUbH00RgGX41X8P6Gq+VPuFLMNSGS+UVMZxkDm9/DRwv 6DayJqafN7S48rdfsa6g9UJbn3PSszVtRR/pr0QfO991kAoSa6jfZaiGGE9vkMZoWRGO 0II1PIUDiF1irvmxs5MUMbmOvRSQMtJ3nOrlLVTaCNFtc6TEgXh4ckkWLPHyPFm8lQDz GlBRJYQ4TKeAcFVg5s3rSPpJK7Hxp+4/mItoRgt4Qd93X76wqh8yBp/0782I7b+6KIgg UGgw== 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=Y09ICMSGHURBqJGpCOc53DlLGxhxattTuJ+t7ohUS7w=; b=ZrB5UhPo243hWkJcqLLQKaEJKnbdmZtA44YbmVZU8+7uMmR/so4M0Erf3+TXZ+cb/R PD77plgr/TUSfr83kmcKqNWX2vyNortEoeB6V6OjIot2HJbjxVIekizJMs85FeDxDvCa p8aRqd/SDvu6vpZsOHQfHAgX0gpojqp+TIuwur9lHJNk2MbdW+h/V8ZH9nQJsz7OvS1q bApQQf07EulixwwuNXrtYT2A7CFPma2U1a3hA5rtPr5Ft70Vqu6Se4lifdlP3vpP34jj uToeKd5vg+KOQVJDsLuFN0SnrZY5n6h/puPwiiWWK+v7LseWztuIQYoUfEOojJwGqbSL k0Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W4jWlBBl; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056a0026c600b00571b10549b0si1634785pfw.87.2022.11.24.10.51.56; Thu, 24 Nov 2022 10:52:08 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W4jWlBBl; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbiKXRyo (ORCPT + 86 others); Thu, 24 Nov 2022 12:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiKXRyW (ORCPT ); Thu, 24 Nov 2022 12:54:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D3256314 for ; Thu, 24 Nov 2022 09:53:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E2A0DB82898 for ; Thu, 24 Nov 2022 17:53:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 229FAC433D6; Thu, 24 Nov 2022 17:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669312406; bh=0CkHSWHK0YdycIG/SfO26rBNHInfTiEV4KS+PF+SzUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W4jWlBBlJByIYSN68t3DNK9LN4bNW0O1ifsqo9VkFJLLrC8uN//iE2yD6G/S1yKpl Fuu+Y9PIYBwOQ73akQvI/cr6IuvrGOXMwmwS1tx86yUsz8v058DYX1rZYx35J1q7kP KgQ7C8K4rHPsddgGm6S1KyOsoBg1YEc6oTK7RnWC81RMSM8pdkfg5y90Egs5yNCiiX qIBwuTHHbkyU/eQJmUulWj+Im7BPDdhB6+htPyPyBgnNQhPYkWi9gIrSth1bFBLd1u 9X74AQvCXrOEX4aXgDU5ICH0nGqX6Zv9+gCOJI+b87wOScjooUQMMutWCbPbzg0JOb o5E9LuV+BqOyQ== Date: Thu, 24 Nov 2022 23:23:22 +0530 From: Vinod Koul To: ye.xingchen@zte.com.cn Cc: kishon@kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: use devm_platform_get_and_ioremap_resource() Message-ID: References: <202211171411439883050@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211171411439883050@zte.com.cn> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 17-11-22, 14:11, ye.xingchen@zte.com.cn wrote: > 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. Applied, thanks > > Signed-off-by: Minghao Chi > Signed-off-by: ye xingchen > --- > drivers/phy/marvell/phy-mmp3-hsic.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/phy/marvell/phy-mmp3-hsic.c b/drivers/phy/marvell/phy-mmp3-hsic.c > index 7cccf01848d8..f2537fdcc3ab 100644 > --- a/drivers/phy/marvell/phy-mmp3-hsic.c > +++ b/drivers/phy/marvell/phy-mmp3-hsic.c > @@ -41,12 +41,10 @@ static int mmp3_hsic_phy_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > struct phy_provider *provider; > - struct resource *resource; > void __iomem *base; > struct phy *phy; > > - resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - base = devm_ioremap_resource(dev, resource); > + base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); > if (IS_ERR(base)) > return PTR_ERR(base); > > -- > 2.25.1 -- ~Vinod