mtd: spinand: Assign initial value 0 for bad block marker
This "= { }" smart initial methord is unreliable.
Change-Id: I64860e8d056f44e99461a4fb68bc9b91c7f95732
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
parent
327380da2b
commit
6193938767
|
|
@ -691,7 +691,7 @@ static int spinand_mtd_block_isbad(struct mtd_info *mtd, loff_t offs)
|
|||
static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos)
|
||||
{
|
||||
struct spinand_device *spinand = nand_to_spinand(nand);
|
||||
u8 marker[2] = { };
|
||||
u8 marker[2] = { 0, 0 };
|
||||
struct nand_page_io_req req = {
|
||||
.pos = *pos,
|
||||
.ooboffs = 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue