From: Vinod Koul <vinod.koul@intel.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-kernel@vger.kernel.org, patches@linaro.org,
thierry.reding@avionic-design.de
Subject: Re: [PATCH Resend] dma: pl330: Convert to devm_ioremap_resource()
Date: Thu, 21 Mar 2013 11:58:23 +0530 [thread overview]
Message-ID: <20130321062822.GE10326@intel.com> (raw)
In-Reply-To: <1362387987-26718-1-git-send-email-sachin.kamat@linaro.org>
On Mon, Mar 04, 2013 at 02:36:27PM +0530, Sachin Kamat wrote:
> Use the newly introduced devm_ioremap_resource() instead of
> devm_request_and_ioremap() which provides more consistent error handling.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Applied thanks
> ---
> drivers/dma/pl330.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index 7181531..10005ec 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -26,6 +26,7 @@
> #include <linux/scatterlist.h>
> #include <linux/of.h>
> #include <linux/of_dma.h>
> +#include <linux/err.h>
>
> #include "dmaengine.h"
> #define PL330_MAX_CHAN 8
> @@ -2904,9 +2905,9 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
> pi->mcbufsz = pdat ? pdat->mcbuf_sz : 0;
>
> res = &adev->res;
> - pi->base = devm_request_and_ioremap(&adev->dev, res);
> - if (!pi->base)
> - return -ENXIO;
> + pi->base = devm_ioremap_resource(&adev->dev, res);
> + if (IS_ERR(pi->base))
> + return PTR_ERR(pi->base);
>
> amba_set_drvdata(adev, pdmac);
>
> --
> 1.7.4.1
>
prev parent reply other threads:[~2013-03-21 6:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 9:06 [PATCH Resend] dma: pl330: Convert to devm_ioremap_resource() Sachin Kamat
2013-03-21 6:28 ` Vinod Koul [this message]
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=20130321062822.GE10326@intel.com \
--to=vinod.koul@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@linaro.org \
--cc=sachin.kamat@linaro.org \
--cc=thierry.reding@avionic-design.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.