dmaengine: mpc512x: Use resource_size
authorTobias Klauser <tklauser@distanz.ch>
Thu, 6 May 2010 09:58:55 +0000 (11:58 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 17 May 2010 18:13:51 +0000 (11:13 -0700)
commit8381fc35244dbdf58cfc49e04e0d7c3498c8aa03
treedc6e2deb84db53242c4904b295ded5ef1294ad3d
parentcc05ea0cd63437da2033b3ce6e033b1f1aaaf640
dmaengine: mpc512x: Use resource_size

Use the resource_size function instead of manually calculating the
resource size.  This reduces the chance of introducing off-by-one
errors.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/mpc512x_dma.c