mtd: plat_nand: request memory resource before doing ioremap
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 19 Oct 2009 23:45:29 +0000 (19:45 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 20 Oct 2009 00:09:59 +0000 (09:09 +0900)
commit2d098a725333990d265dfe4754d1b63032c35afb
tree6541491840b5dfca69d5584cefd052617583d71d
parent5da6bbe2f9e1db56b4a94cad2ace7d9992b1d666
mtd: plat_nand: request memory resource before doing ioremap

Add a request_mem_region() before doing the ioremap().  Also, use the
resource_size macro instead of doing the end - start + 1 calc by hand.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/plat_nand.c