]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mtdconcat: return -EOPNOTSUPP if block_markbad is undefined
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 3 Feb 2012 09:03:28 +0000 (11:03 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:23:43 +0000 (00:23 +0100)
commit97e68143f77797570d7d3e7a8f6e28c7d0748029
treef6fe4a75cdb7b0f614f1b2b8af25bbbce85568a7
parent692ae4f4d30b6e13a0767fd6d40a479c3c2d886a
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>
drivers/mtd/mtdconcat.c