iop-adma.c: use resource_size()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 12 Dec 2009 04:24:33 +0000 (21:24 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Dec 2009 04:24:33 +0000 (21:24 -0700)
commit2e032b62c4c8560d6416ad3cc925cfc2a5eafb07
tree8700a84d68eebf61def8dde6cf4bd5d76a13c5fb
parenta88f6667078412e5eff37ead68a043ee0ec9f1da
iop-adma.c: use resource_size()

The size of the requested and ioremaped memory is off by 1.
Use resource_size() to get the correct value.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/iop-adma.c