summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-28 16:27:18 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 19:26:13 +0100
commit016c1291ce70a22f15f666441a4fd2f0b450375b (patch)
tree650a0d91aa87bcf6146f98eadf0341d46ce0ef0f /drivers/mtd/mtdchar.c
parentromfs: do not use mtd->get_unmapped_area directly (diff)
downloadlinux-016c1291ce70a22f15f666441a4fd2f0b450375b.tar.xz
linux-016c1291ce70a22f15f666441a4fd2f0b450375b.zip
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>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
0 files changed, 0 insertions, 0 deletions