diff options
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 954e334e01bb..9a353c2216d0 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) | |||
1305 | return -ENODEV; | 1305 | return -ENODEV; |
1306 | 1306 | ||
1307 | msp->xor_base = devm_ioremap(&pdev->dev, res->start, | 1307 | msp->xor_base = devm_ioremap(&pdev->dev, res->start, |
1308 | res->end - res->start + 1); | 1308 | resource_size(res)); |
1309 | if (!msp->xor_base) | 1309 | if (!msp->xor_base) |
1310 | return -EBUSY; | 1310 | return -EBUSY; |
1311 | 1311 | ||
@@ -1314,7 +1314,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev) | |||
1314 | return -ENODEV; | 1314 | return -ENODEV; |
1315 | 1315 | ||
1316 | msp->xor_high_base = devm_ioremap(&pdev->dev, res->start, | 1316 | msp->xor_high_base = devm_ioremap(&pdev->dev, res->start, |
1317 | res->end - res->start + 1); | 1317 | resource_size(res)); |
1318 | if (!msp->xor_high_base) | 1318 | if (!msp->xor_high_base) |
1319 | return -EBUSY; | 1319 | return -EBUSY; |
1320 | 1320 | ||