public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dma: sh: use devm_ioremap_resource() instead of devm_request_and_ioremap()
@ 2013-09-02  1:23 Jingoo Han
  2013-09-02  1:25 ` PATCH 2/2] dma: k3dma: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jingoo Han @ 2013-09-02  1:23 UTC (permalink / raw)
  To: 'Vinod Koul'
  Cc: 'Dan Williams', linux-kernel, 'Simon Horman',
	'Guennadi Liakhovetski', 'Jingoo Han'

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/dma/sh/sudmac.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
index bf85b8e..7c1ffaa 100644
--- a/drivers/dma/sh/sudmac.c
+++ b/drivers/dma/sh/sudmac.c
@@ -358,9 +358,9 @@ static int sudmac_probe(struct platform_device *pdev)
 
 	dma_dev = &su_dev->shdma_dev.dma_dev;
 
-	su_dev->chan_reg = devm_request_and_ioremap(&pdev->dev, chan);
-	if (!su_dev->chan_reg)
-		return err;
+	su_dev->chan_reg = devm_ioremap_resource(&pdev->dev, chan);
+	if (IS_ERR(su_dev->chan_reg))
+		return PTR_ERR(su_dev->chan_reg);
 
 	dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-02 12:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02  1:23 [PATCH 1/2] dma: sh: use devm_ioremap_resource() instead of devm_request_and_ioremap() Jingoo Han
2013-09-02  1:25 ` PATCH 2/2] dma: k3dma: " Jingoo Han
2013-09-02  1:26 ` [PATCH " Jingoo Han
2013-09-02  2:30   ` zhangfei
2013-09-02  6:34 ` [PATCH 1/2] dma: sh: " Vinod Koul
2013-09-02 12:09   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox