lkml.org 
[lkml]   [2011]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] dma: mv_xor: use resource_size()
From
Date
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



\
 
 \ /
  Last update: 2011-07-14 00:45    [W:2.661 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site