mtd: r852: Fix device_create_file() usage
authorRichard Weinberger <richard@nod.at>
Mon, 1 Jun 2015 21:10:49 +0000 (23:10 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 17 Jun 2015 01:58:46 +0000 (18:58 -0700)
commit905cce7f4309f3ec19c1ed67edd68b7e67e88f3e
tree5c7ff2e829abe33071734fc078cb182f4b173001
parent5e65d48b6049e090fdc57490db9d797124f2a9eb
mtd: r852: Fix device_create_file() usage

device_create_file() can fail, therefore we have to
handle this case and abort.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/r852.c