diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2011-06-01 18:10:30 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-06-06 04:13:59 -0400 |
commit | 7dab35c0c01c5d960d7b551a607270adccfadb42 (patch) | |
tree | c0846a1c89357661ff19cf9610c7b9f88a1a07e3 /drivers | |
parent | d41071575b0b20b780bb0e8e7e70c62c1b07a883 (diff) |
dma: ipu_idmac.c: use resource_size in ioremap
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/ipu/ipu_idmac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index c1a125e7d1df..25447a8ca282 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c | |||
@@ -1705,16 +1705,14 @@ static int __init ipu_probe(struct platform_device *pdev) | |||
1705 | ipu_data.irq_fn, ipu_data.irq_err, ipu_data.irq_base); | 1705 | ipu_data.irq_fn, ipu_data.irq_err, ipu_data.irq_base); |
1706 | 1706 | ||
1707 | /* Remap IPU common registers */ | 1707 | /* Remap IPU common registers */ |
1708 | ipu_data.reg_ipu = ioremap(mem_ipu->start, | 1708 | ipu_data.reg_ipu = ioremap(mem_ipu->start, resource_size(mem_ipu)); |
1709 | mem_ipu->end - mem_ipu->start + 1); | ||
1710 | if (!ipu_data.reg_ipu) { | 1709 | if (!ipu_data.reg_ipu) { |
1711 | ret = -ENOMEM; | 1710 | ret = -ENOMEM; |
1712 | goto err_ioremap_ipu; | 1711 | goto err_ioremap_ipu; |
1713 | } | 1712 | } |
1714 | 1713 | ||
1715 | /* Remap Image Converter and Image DMA Controller registers */ | 1714 | /* Remap Image Converter and Image DMA Controller registers */ |
1716 | ipu_data.reg_ic = ioremap(mem_ic->start, | 1715 | ipu_data.reg_ic = ioremap(mem_ic->start, resource_size(mem_ic)); |
1717 | mem_ic->end - mem_ic->start + 1); | ||
1718 | if (!ipu_data.reg_ic) { | 1716 | if (!ipu_data.reg_ic) { |
1719 | ret = -ENOMEM; | 1717 | ret = -ENOMEM; |
1720 | goto err_ioremap_ic; | 1718 | goto err_ioremap_ic; |