dma: mv_xor: use resource_size()

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Dan Williams <[email protected]> (supporter:ASYNCHRONOUS TRAN...)
Cc: Vinod Koul <[email protected]> (supporter:DMA GENERIC OFFLO...)
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
H Hartley Sweeten 2011-06-06 13:49:00 -07:00 • committed by Vinod Koul
commit 4de1ba155b

View file

@ -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;