mtd: lantiq-flash: Use devm_kzalloc()
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 01:42:34 +0000 (10:42 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:27 +0000 (11:22 -0800)
commit436bf63ba5792f2f7bb5e1a4e8d38df8f1a44edc
tree011f172c34cbf6b7540ec1fdff191787667a96e2
parent82402aeb8c81edab9249b9e330b21e88723f539e
mtd: lantiq-flash: Use devm_kzalloc()

Use devm_kzalloc() to make cleanup paths simpler. Also, checking
return value of devm_kzalloc() is added in order to check if the
allocation succeded.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/lantiq-flash.c