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
..
2012-01-09 18:25:20 +00:00
2012-01-09 18:26:01 +00:00
2012-01-09 18:25:46 +00:00
2012-01-09 18:25:56 +00:00
2012-01-09 18:25:19 +00:00
2012-01-09 18:25:19 +00:00
2012-01-09 18:25:35 +00:00
2012-01-09 18:25:35 +00:00
2012-01-09 18:26:06 +00:00
2012-01-09 18:25:35 +00:00
2012-01-09 18:26:08 +00:00