Artem Bityutskiy 016c1291ce mtd: mtdoops: do not use mtd->panic_write directly
Instead of checking if 'mtd->panic_write' is defined, call 'mtd_panic_write()'
and check the error code - '-EOPNOTSUPP' will be returned if the function is
not defined.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:26:13 +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
2011-09-11 15:02:13 +03:00
2011-09-11 15:02:14 +03:00
2012-01-09 18:25:35 +00:00
2012-01-09 18:26:08 +00:00