mtd: denali_dt: Use devm_ioremap_resource()
authorJingoo Han <jg1.han@samsung.com>
Wed, 12 Feb 2014 02:29:42 +0000 (11:29 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 26 Mar 2014 06:21:08 +0000 (23:21 -0700)
commit7995204e3c89820c4621af90b0e5f9ca0b375471
tree2c9d2f575222d47483fd0032bdbb47b40bdb2eb0
parentc7ea95a377921efd0f0fa3e64852f5cc3d7ffc47
mtd: denali_dt: 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_byname() because the value is
checked by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/denali_dt.c