]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: orion_nand.c: add error handling and use resource_size()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 14 Dec 2009 21:48:34 +0000 (16:48 -0500)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 31 Dec 2009 20:47:20 +0000 (20:47 +0000)
commite99030609e27abff7e1a868cb56384c678b09984
treeaa55876a384d6994c86eb936252f68f70dcb9e4a
parent4442241ef6ed4d53c13d1c4b18fd57918bb4c850
mtd: orion_nand.c: add error handling and use resource_size()

Use platform_get_resource() to fetch the memory resource and
add error handling for when it is missing. Use resource_size()
for the ioremap().

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