From: Artem Bityutskiy Date: Wed, 28 Dec 2011 15:50:34 +0000 (+0200) Subject: mtd: do not use mtd->read_oob directly X-Git-Tag: v3.3-rc1~119^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dac2639f9833e858139d7e07f6ee45fb2191a9f2;p=pandora-kernel.git mtd: do not use mtd->read_oob directly Instead of checking whether 'mtd->read_oob' is defined, just call 'mtd_read_oob()' and handle the '-EOPNOTSUPP' error which will be returned if the function is undefined. Additionally, make 'mtd_write_oob()' return '-EOPNOTSUPP' if the function is undefined. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed