mtd: ixp4xx map: use resource_size
authorTobias Klauser <tklauser@distanz.ch>
Fri, 30 Oct 2009 16:54:33 +0000 (17:54 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 09:47:24 +0000 (09:47 +0000)
commitd6587feaf0ed7511b3d0b52bcaae8ecd0949d3af
treecfd13ef9280472485342cc1384989fbc87d5fda9
parent2af7c653993199fb32dc6d9504064a0c9c57e5d6
mtd: ixp4xx map: use resource_size

Use the resource_size inline 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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/ixp4xx.c