mtd: do not use mtd->lock, unlock and is_locked directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 30 Dec 2011 15:00:35 +0000 (17:00 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:22 +0000 (18:26 +0000)
commit381345652fca688aeaa967c231e5075cf68d05b6
tree5f23ecdd28165d15109c6fd7ad0c4c573f094707
parent327cf2922b4edf0439b219469722d2a502e37349
mtd: do not use mtd->lock, unlock and is_locked directly

Instead, call the corresponding MTD API function which will return
'-EOPNOTSUPP' if the operation is not supported.

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