[MTD] return error code from get_mtd_device()
authorArtem Bityutskiy <dedekind@infradead.org>
Wed, 11 Oct 2006 11:52:47 +0000 (14:52 +0300)
committerArtem Bityutskiy <dedekind@infradead.org>
Wed, 29 Nov 2006 15:06:38 +0000 (17:06 +0200)
commit9c74034f8fc5d93fbe5656421cbbdc4c76ddda28
treee5a205e124c0e42899743d765598f82a228156c2
parent9fe912cea32aec18f860c95e8574410b5892481b
[MTD] return error code from get_mtd_device()

get_mtd_device() returns NULL in case of any failure. Teach it to return an
error code instead. Fix all users as well.

Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
drivers/mtd/maps/nettel.c
drivers/mtd/mtdchar.c
drivers/mtd/mtdcore.c
fs/jffs/jffs_fm.c
fs/jffs2/super.c