diff options
author | 2011-12-28 18:47:46 +0200 | |
---|---|---|
committer | 2012-01-09 18:26:15 +0000 | |
commit | 87e858a97e8a7010aedc01db7cd31cc7c02b0b6a (patch) | |
tree | c5ff8b86ef0ae7891224e620916c58241c3e1799 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: do not use mtd->read_oob directly (diff) | |
download | linux-dev-87e858a97e8a7010aedc01db7cd31cc7c02b0b6a.tar.xz linux-dev-87e858a97e8a7010aedc01db7cd31cc7c02b0b6a.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions