mtd: do not use mtd->read_*_prot_reg directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 29 Dec 2011 08:06:32 +0000 (10:06 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:16 +0000 (18:26 +0000)
commitb6de3d6cb63427178c4f1df88b81d1ceee637e6f
tree9e84f24ac14305246c6f38e885edbc9f48dfc089
parent87e858a97e8a7010aedc01db7cd31cc7c02b0b6a
mtd: do not use mtd->read_*_prot_reg directly

Instead, call 'mtd_read_*_prot_info()' and check for -EOPNOTSUPP.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdchar.c
include/linux/mtd/mtd.h