mtd: propagate error codes from add_mtd_device()
authorBrian Norris <computersforpeace@gmail.com>
Mon, 1 Jun 2015 23:17:18 +0000 (16:17 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 17 Jun 2015 01:47:06 +0000 (18:47 -0700)
commit57dd990c5e9c4664f3db4cba271c808ca7adf9e5
treedeb9049881f05845774a03093b86d458de6db7b8
parent6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28
mtd: propagate error codes from add_mtd_device()

It makes more sense to return error statuses, not 1/0.

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