mtd: do not use mtd->lock_user_prot_reg directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 29 Dec 2011 08:45:04 +0000 (10:45 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:18 +0000 (18:26 +0000)
commite2936b2af5562c8c66060e2bc2ae2e209d0acd3d
tree99af09f8049f9fd76abca6d630ff333b169ab25f
parent27c151a5e52efaa46d0938984f2ef591bdcb6d5b
mtd: do not use mtd->lock_user_prot_reg directly

Instead, check the -EOPNOTSUPP return code of 'mtd_lock_user_prot_reg()'.

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