Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31174576rwd; Thu, 6 Jul 2023 17:18:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2JvWDBhma/AXK/Q4JWb6MUJSK/yM2afyouigcZHlBdRpuVP9u9qzBICFwZzKzoJjxwWMM X-Received: by 2002:a05:6808:1413:b0:3a1:f40a:1862 with SMTP id w19-20020a056808141300b003a1f40a1862mr3909796oiv.9.1688689098671; Thu, 06 Jul 2023 17:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688689098; cv=none; d=google.com; s=arc-20160816; b=NdpbOkK5nRKV69OPXn8pQ3hic7VdH+GLO0BI+b1AuRwftMrGPEtzZ0iEWejbyVH+qZ wmvWYG+Rv48aclZ3YpDfz4IssUDvO5cRVb6Gyv8wnX8c4GY05hbt44WjW0i4tZyKfN0J NAUqKKRc+CWMKYKAMdrktQoDFHrGMhCt5ARlvgVgQdlvcIB2FRw4iERTMmZ/3xycQdzD 3S7qxoyiOs8/45/oUFx9t3B1Iyti+gWBeYSYN46qn+V2p+og/Vq4iaBUPOLboc0Is13H 06Y1jz+Cvi4UYPxkxHQHWrAh4lgPd7H1xMMuIl/CycNlkiffb3um2gQG1NiRb2uoru8s bwkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=a7NA5x4IZMVlTqHJhU/5GKAthRfeO1I8xmZkUtcl9h8=; fh=1AlT9VhTI8mXo6OU78RcH9zDJ7q7YYxcvMuZjpkdSvo=; b=RFmCdy2Ten96Bb9lxwNaBMpxhkPnIXIJGIu4wU7hX40q9DTAsL09qu/iDPri3tiHJR L6enq1awj2wJOrfvbkK0IPZuLZL6/ss5KDujHCatkJ3Cyeu6qgjK+SC5LTz62VgDvouR gIPT4d0Y5M89GhdcuvWJgtk5eD5uiy+VRqX1oLDppzIF3RGd/ZZHcSoN4CXs+lWIrP9X aJ/2Y8Nwc8LnTBM5xS5+lvxyEbiVamZKft7qZVGrd2vDroP8E+2pRSWe0PF8CAp1C2QB OZXvXoLgsyzIOvBWRW4Bi4unYYFczNk89QHb7QxKwTBWhY49O0/ABEtzX8p1nl7imxVU TlUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZmnHvkE1; 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 t33-20020a634461000000b0055bf3d0c991si2271180pgk.5.2023.07.06.17.18.05; Thu, 06 Jul 2023 17:18:18 -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=@kernel.org header.s=k20201202 header.b=ZmnHvkE1; 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 S229879AbjGFXk1 (ORCPT + 99 others); Thu, 6 Jul 2023 19:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjGFXk0 (ORCPT ); Thu, 6 Jul 2023 19:40:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C4A1BE1; Thu, 6 Jul 2023 16:40:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B3E761208; Thu, 6 Jul 2023 23:40:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6654C433C8; Thu, 6 Jul 2023 23:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688686824; bh=Tujvzn4Wxs028ODcLbjT4SKTlIH3KZy7BkIxU9xPyp8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZmnHvkE1y8KWQonwoLUVtPX/jP7vLElmepVmMo1LqXmPyXJsykYgIWcZ4ckeGmhz6 uNm1pYWbpaiId70z2dbr9es/ll7Bsc0BTkQjngUyYZbrJmfBtjJIPBrBlJ/kProc5W UTSH0EI5Ovxa1RZPwbO6jmWjWoUV99aQg2HI/fRRpDg6lmADspB8+r1NZBIT4GaODj SonPJKxpT0HKAeSW0uvKlX/OM53pQhLXXiwXbmriD+JYlVYjN/77+h9m073XxwBH0+ bpXeVNTw+VD3k1ui7DXoFNUMencOhOUCfFY31yMtdX+Ttc9Mi7IXAWYGTTbgk5UZkf HQRIe9fjeP8Aw== Message-ID: <3f279fcf-5fbc-d0bb-ec94-39d35acd2d81@kernel.org> Date: Fri, 7 Jul 2023 08:40:22 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 8/8] pata: imx: Use devm_platform_get_and_ioremap_resource() Content-Language: en-US To: Yangtao Li , Sergey Shtylyov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230706124239.23366-1-frank.li@vivo.com> <20230706124239.23366-8-frank.li@vivo.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230706124239.23366-8-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 7/6/23 21:42, Yangtao Li wrote: > 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. Patch title: ata: pata_imx: ... > > Signed-off-by: Yangtao Li > --- > drivers/ata/pata_imx.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c > index 4013f28679a9..65d09ec94c12 100644 > --- a/drivers/ata/pata_imx.c > +++ b/drivers/ata/pata_imx.c > @@ -164,8 +164,7 @@ static int pata_imx_probe(struct platform_device *pdev) > ap->pio_mask = ATA_PIO4; > ap->flags |= ATA_FLAG_SLAVE_POSS; > > - io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); > + priv->host_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &io_res); > if (IS_ERR(priv->host_regs)) { > ret = PTR_ERR(priv->host_regs); > goto err; -- Damien Le Moal Western Digital Research