Artem Bityutskiy 87e858a97e 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 <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:26:15 +00:00
..
2011-12-15 11:25:43 -07:00
2011-11-29 18:39:37 -05:00
2011-12-20 18:53:26 +01:00
2011-12-07 09:06:37 -08:00
2011-12-05 17:06:37 +01:00