aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/iop-adma.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/dma/iop-adma.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/dma/iop-adma.c')
-rw-r--r--drivers/dma/iop-adma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index 645ca8d54ec4..1ebc801678b0 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -32,6 +32,7 @@
32#include <linux/memory.h> 32#include <linux/memory.h>
33#include <linux/ioport.h> 33#include <linux/ioport.h>
34#include <linux/raid/pq.h> 34#include <linux/raid/pq.h>
35#include <linux/slab.h>
35 36
36#include <mach/adma.h> 37#include <mach/adma.h>
37 38
@@ -1470,7 +1471,7 @@ static int __devinit iop_adma_probe(struct platform_device *pdev)
1470 return -ENODEV; 1471 return -ENODEV;
1471 1472
1472 if (!devm_request_mem_region(&pdev->dev, res->start, 1473 if (!devm_request_mem_region(&pdev->dev, res->start,
1473 res->end - res->start, pdev->name)) 1474 resource_size(res), pdev->name))
1474 return -EBUSY; 1475 return -EBUSY;
1475 1476
1476 adev = kzalloc(sizeof(*adev), GFP_KERNEL); 1477 adev = kzalloc(sizeof(*adev), GFP_KERNEL);
@@ -1542,7 +1543,7 @@ static int __devinit iop_adma_probe(struct platform_device *pdev)
1542 iop_chan->device = adev; 1543 iop_chan->device = adev;
1543 1544
1544 iop_chan->mmr_base = devm_ioremap(&pdev->dev, res->start, 1545 iop_chan->mmr_base = devm_ioremap(&pdev->dev, res->start,
1545 res->end - res->start); 1546 resource_size(res));
1546 if (!iop_chan->mmr_base) { 1547 if (!iop_chan->mmr_base) {
1547 ret = -ENOMEM; 1548 ret = -ENOMEM;
1548 goto err_free_iop_chan; 1549 goto err_free_iop_chan;