dma: mv_xor: use resource_size()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 6 Jun 2011 20:49:00 +0000 (13:49 -0700)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Jul 2011 22:02:31 +0000 (03:32 +0530)
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...)
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c

index 954e334e01bbea5a5c028f445dd8551dd51dd718..9a353c2216d09a1c1a498da4344f31a03f90aad3 100644 (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;
 
This page took 0.025638 seconds and 5 git commands to generate.