aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/mpc512x_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c
index 7a750b95303c..e41fb8b671d3 100644
--- a/drivers/dma/mpc512x_dma.c
+++ b/drivers/dma/mpc512x_dma.c
@@ -657,7 +657,7 @@ static int __devinit mpc_dma_probe(struct of_device *op,
657 } 657 }
658 658
659 regs_start = res.start; 659 regs_start = res.start;
660 regs_size = res.end - res.start + 1; 660 regs_size = resource_size(&res);
661 661
662 if (!devm_request_mem_region(dev, regs_start, regs_size, DRV_NAME)) { 662 if (!devm_request_mem_region(dev, regs_start, regs_size, DRV_NAME)) {
663 dev_err(dev, "Error requesting memory region!\n"); 663 dev_err(dev, "Error requesting memory region!\n");