UBI: fix NOR erase preparation quirk
authorHolger Brunck <holger.brunck@keymile.com>
Tue, 25 Jan 2011 11:04:11 +0000 (13:04 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Jan 2011 08:13:52 +0000 (10:13 +0200)
commitd4c6381303163e774a72db8c172cdc5c23f01588
tree2b7a6986c3168b1fc1f17113ac5cc3ef8c320bf1
parent3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5
UBI: fix NOR erase preparation quirk

In 'nor_erase_prepare()' we want to make sure the UBI headers are
corrupted. But it is possible that one of the headers just contains
all 0xFFs, which is also OK, because UBI will erase it in case of
a power cut.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/io.c