linux/drivers/mtd
Artem Bityutskiy 7918687644 mtd: mtdconcat: return -EOPNOTSUPP if block_markbad is undefined
The main 'mtd_block_markbad()' function returns -EOPNOTSUPP if the
'->block_markbad' method is undefined, and mtdconcat should do the same.
Fix this by simply removing the 'mtd_can_have_bb()' because it is  not
really necessary. It could be treated as an optimization, but this function is
expected to be used so rarely that it does not matter.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:23:43 +01:00
..
chips mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
devices mtd: sst25l: initialize writebufsize 2012-03-27 00:23:22 +01:00
lpddr mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
maps mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
nand mtd: docg4: fix printk() warnings 2012-03-27 00:21:44 +01:00
onenand mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
tests
ubi mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
afs.c
ar7part.c
bcm63xxpart.c
cmdlinepart.c
ftl.c
inftlcore.c mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
inftlmount.c
Kconfig mtd: mtdoops: kill Kconfig usage instructions 2012-03-27 00:15:37 +01:00
Makefile
mtd_blkdevs.c mtd: mtdblock: call mtd_sync() only if opened for write 2012-03-27 00:11:11 +01:00
mtdblock_ro.c
mtdblock.c mtd: mtdblock: call mtd_sync() only if opened for write 2012-03-27 00:11:11 +01:00
mtdchar.c mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
mtdconcat.c mtd: mtdconcat: return -EOPNOTSUPP if block_markbad is undefined 2012-03-27 00:23:43 +01:00
mtdcore.c mtd: mtdcore: remove unnecessary mtd->resume check 2012-03-27 00:20:18 +01:00
mtdcore.h
mtdoops.c
mtdpart.c mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c