From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5E8FC433F5 for ; Fri, 22 Apr 2022 06:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wB5UkwMNRYyDaFHmzuv/MK++MatWan+onyJYzV2uVJs=; b=sqGtsNq/tRvGaj cf+d5Scrd3/9AKUSSiwKNM2dh73Ko2xucUqe9hHx8H9ig0YY9MRCfUV0T2Av90KLT3y0f3YlYWnWr WqCWKG8yXAhx8wH4JyLVtUrBOyzzCeQngTXe5bjSethkruqbVpjvOIXrbaIL+JvTrIgcta32PS8Xt fj8v0eG4P3dCi8opISOF6nkmrv3KDyuGiGnUxCCMKlZ3Fw0rHGE7eWHa0CkSstBU/nDod9Uocm9Kl ZPBgvjMSP5cjiHPICXThI1pdyuobAB3VegFK7PxTFFJZJBAWtNXpuG410XZX2ikUe/nZnTdn5Ksge 89UuXNzVwvjGPtCSxUwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhmQ5-00GN2j-Me; Fri, 22 Apr 2022 06:05:29 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhmPG-00GMci-DF for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 06:04:39 +0000 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 ECB3DB82A7E; Fri, 22 Apr 2022 06:04:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C216DC385A4; Fri, 22 Apr 2022 06:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650607475; bh=QVgdPhLPhkloXklN2o5gxk7tqYHTsj68+O0sLTDu7XU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CSizFBlFR69OnS+wshQn86Kwi7lObQGqB6M5j1bJRVTJssXo29VaMCsMIef1Kgryo zxpmZNTxbHBbqmhR6q0xOBFFpurXCdFs7xMCjq+kgVjfJADrqMrv4/jPuZuzeF6Eug 7X+YLFUmIiWUMAZpIkFbO8oLsNt8Q9Zplg1qWl56aifrL/JKhluSVlanij1F+LRI6e tBF21OInNey2jcaDu5dDFgXHfMSU9M+oLbmG1F9gUr6b3xIKVbhuXikwd5/bjFlrvo aNSDZ0IoT0wZ0nQEEOhTJMT74SWG2JN8L6+F6S2xU9PrCfZXyK2yPvLeOgiuJ58hLQ IVH+5TT61itNQ== Date: Fri, 22 Apr 2022 11:34:31 +0530 From: Vinod Koul To: cgel.zte@gmail.com Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lv Ruyi , Zeal Robot Subject: Re: [PATCH] dma: Make use of the helper function devm_platform_ioremap_resource() Message-ID: References: <20220421084509.2615252-1-lv.ruyi@zte.com.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220421084509.2615252-1-lv.ruyi@zte.com.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_230438_647192_095F7A7E X-CRM114-Status: GOOD ( 17.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 21-04-22, 08:45, cgel.zte@gmail.com wrote: > From: Lv Ruyi > It is dmaengine: not dma: Also add driver tag to subject line. git log would help you choosing right tags > Use the devm_platform_ioremap_resource() helper instead of calling > platform_get_resource() and devm_ioremap_resource() separately. > > Reported-by: Zeal Robot Where is the report? > Signed-off-by: Lv Ruyi > --- > drivers/dma/imx-sdma.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c > index 6196a7b3956b..cf4667d10f6a 100644 > --- a/drivers/dma/imx-sdma.c > +++ b/drivers/dma/imx-sdma.c > @@ -2073,7 +2073,6 @@ static int sdma_probe(struct platform_device *pdev) > const char *fw_name; > int ret; > int irq; > - struct resource *iores; > struct resource spba_res; > int i; > struct sdma_engine *sdma; > @@ -2096,8 +2095,7 @@ static int sdma_probe(struct platform_device *pdev) > if (irq < 0) > return irq; > > - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - sdma->regs = devm_ioremap_resource(&pdev->dev, iores); > + sdma->regs = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(sdma->regs)) > return PTR_ERR(sdma->regs); > > -- > 2.25.1 -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel