]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb67ae76842b57c6c417606dc031eca744f982ad
treecfd13ef9280472485342cc1384989fbc87d5fda9
parentd0c2ef539d04b2afb4ca4eaed5d4c9bcea0a991f
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