mtd: mtd->write_user_prot_reg directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 29 Dec 2011 08:39:20 +0000 (10:39 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:17 +0000 (18:26 +0000)
commit27c151a5e52efaa46d0938984f2ef591bdcb6d5b
tree67866c01422a4f0c99192b0bc2db8f1968cd1f5b
parentb6de3d6cb63427178c4f1df88b81d1ceee637e6f
mtd: mtd->write_user_prot_reg directly

Instead, just call 'mtd_write_user_prot_reg()' and check the '-EOPNOTSUPP' return
code.

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