[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)
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>

No differences found