From: Jingoo Han <jg1.han@samsung.com>
To: "'Vinod Koul'" <vinod.koul@intel.com>
Cc: "'Dan Williams'" <djbw@fb.com>,
linux-kernel@vger.kernel.org,
"'Simon Horman'" <horms+renesas@verge.net.au>,
"'Guennadi Liakhovetski'" <g.liakhovetski+renesas@gmail.com>,
"'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH 1/2] dma: sh: use devm_ioremap_resource() instead of devm_request_and_ioremap()
Date: Mon, 02 Sep 2013 10:23:15 +0900 [thread overview]
Message-ID: <004c01cea77a$ffd30030$ff790090$%han@samsung.com> (raw)
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
next reply other threads:[~2013-09-02 1:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 1:23 Jingoo Han [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='004c01cea77a$ffd30030$ff790090$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=djbw@fb.com \
--cc=g.liakhovetski+renesas@gmail.com \
--cc=horms+renesas@verge.net.au \
--cc=linux-kernel@vger.kernel.org \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome