From: Artem Bityutskiy Date: Wed, 28 Dec 2011 16:47:46 +0000 (+0200) Subject: mtd: do not use mtd->get_*_prot_info directly X-Git-Tag: v3.3-rc1~119^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e858a97e8a7010aedc01db7cd31cc7c02b0b6a;p=pandora-kernel.git mtd: do not use mtd->get_*_prot_info directly Instead, call 'mtd_get_*_prot_info()' and check for '-EOPNOTSUPP'. While on it, fix the return code from '-EOPNOTSUPP' to '-EINVAL' for the case when the mode parameter is invalid. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed