mtd: omap2: Use devm_ioremap_resource()
authorJingoo Han <jg1.han@samsung.com>
Wed, 12 Feb 2014 02:34:37 +0000 (11:34 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 26 Mar 2014 06:21:15 +0000 (23:21 -0700)
commit00d09891eb947f8c4a7cb4d16bf3de305a65de77
treeb4e5553a9979481d00a61c7c437279709eb5312c
parent7995204e3c89820c4621af90b0e5f9ca0b375471
mtd: omap2: Use devm_ioremap_resource()

Use devm_ioremap_resource() in order to make the code simpler,
and remove redundant return value check of platform_get_resource()
because the value is checked by devm_ioremap_resource(). Also,
'unsigned long mem_size' is removed from 'struct omap_nand_info',
because the 'mem_size' variable is not necessary anymore.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/omap2.c