diff options
Diffstat (limited to 'drivers/dma/iop-adma.c')
| -rw-r--r-- | drivers/dma/iop-adma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index 645ca8d54ec4..ca6e6a0cb793 100644 --- a/drivers/dma/iop-adma.c +++ b/drivers/dma/iop-adma.c | |||
| @@ -1470,7 +1470,7 @@ static int __devinit iop_adma_probe(struct platform_device *pdev) | |||
| 1470 | return -ENODEV; | 1470 | return -ENODEV; |
| 1471 | 1471 | ||
| 1472 | if (!devm_request_mem_region(&pdev->dev, res->start, | 1472 | if (!devm_request_mem_region(&pdev->dev, res->start, |
| 1473 | res->end - res->start, pdev->name)) | 1473 | resource_size(res), pdev->name)) |
| 1474 | return -EBUSY; | 1474 | return -EBUSY; |
| 1475 | 1475 | ||
| 1476 | adev = kzalloc(sizeof(*adev), GFP_KERNEL); | 1476 | adev = kzalloc(sizeof(*adev), GFP_KERNEL); |
| @@ -1542,7 +1542,7 @@ static int __devinit iop_adma_probe(struct platform_device *pdev) | |||
| 1542 | iop_chan->device = adev; | 1542 | iop_chan->device = adev; |
| 1543 | 1543 | ||
| 1544 | iop_chan->mmr_base = devm_ioremap(&pdev->dev, res->start, | 1544 | iop_chan->mmr_base = devm_ioremap(&pdev->dev, res->start, |
| 1545 | res->end - res->start); | 1545 | resource_size(res)); |
| 1546 | if (!iop_chan->mmr_base) { | 1546 | if (!iop_chan->mmr_base) { |
| 1547 | ret = -ENOMEM; | 1547 | ret = -ENOMEM; |
| 1548 | goto err_free_iop_chan; | 1548 | goto err_free_iop_chan; |
