From: "Koul, Vinod" <vinod.koul@intel.com>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>, dan.j.williams@intel.com
Subject: Re: [PATCH] dma: mv_xor: use resource_size()
Date: Thu, 14 Jul 2011 03:32:15 +0530 [thread overview]
Message-ID: <1310594535.1536.20.camel@vkoul-udesk3> (raw)
In-Reply-To: <201106061349.00474.hartleys@visionengravers.com>
On Mon, 2011-06-06 at 13:49 -0700, H Hartley Sweeten wrote:
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Dan Williams <dan.j.williams@intel.com> (supporter:ASYNCHRONOUS TRAN...)
> Cc: Vinod Koul <vinod.koul@intel.com> (supporter:DMA GENERIC OFFLO...)
>
> ---
>
> diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
> index 954e334..9a353c2 100644
> --- a/drivers/dma/mv_xor.c
> +++ b/drivers/dma/mv_xor.c
> @@ -1305,7 +1305,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev)
> return -ENODEV;
>
> msp->xor_base = devm_ioremap(&pdev->dev, res->start,
> - res->end - res->start + 1);
> + resource_size(res));
> if (!msp->xor_base)
> return -EBUSY;
>
> @@ -1314,7 +1314,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev)
> return -ENODEV;
>
> msp->xor_high_base = devm_ioremap(&pdev->dev, res->start,
> - res->end - res->start + 1);
> + resource_size(res));
> if (!msp->xor_high_base)
> return -EBUSY;
>
Applied thanks
--
~Vinod
prev parent reply other threads:[~2011-07-13 22:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 20:49 H Hartley Sweeten
2011-06-06 21:52 ` [RFC] Convert "resource->end - resource->start + 1" to resource_size(resource) via coccinelle Joe Perches
2011-06-06 21:57 ` H Hartley Sweeten
2011-06-07 1:04 ` [PATCH] treewide: Convert uses of struct resource * to resource_size(ptr) Joe Perches
2011-06-07 1:26 ` Mike Frysinger
2011-06-07 16:31 ` H Hartley Sweeten
2011-06-07 18:27 ` H Hartley Sweeten
2011-06-07 18:35 ` Joe Perches
2011-06-07 21:29 ` [TRIVIAL PATCH v2] treewide: Convert uses of struct resource " Joe Perches
2011-06-09 12:25 ` Jiri Kosina
2011-06-09 16:09 ` Joe Perches
2011-06-07 5:07 ` [Cocci] [RFC] Convert "resource->end - resource->start + 1" to resource_size(resource) via coccinelle Julia Lawall
2011-06-07 5:32 ` Joe Perches
2011-06-07 5:42 ` Julia Lawall
2011-06-07 7:42 ` Joe Perches
2011-07-13 22:02 ` Koul, Vinod [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=1310594535.1536.20.camel@vkoul-udesk3 \
--to=vinod.koul@intel.com \
--cc=dan.j.williams@intel.com \
--cc=hartleys@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®