mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-07 05:29:08 +00:00
switch to 5.4.y
This commit is contained in:
parent
1a4c152fc6
commit
aafb70a9a3
189 changed files with 1212088 additions and 222 deletions
|
@ -0,0 +1,37 @@
|
|||
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
|
||||
index 71050a0..5f36704 100644
|
||||
--- a/drivers/mtd/nand/raw/nand_base.c
|
||||
+++ b/drivers/mtd/nand/raw/nand_base.c
|
||||
@@ -460,10 +460,7 @@ static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int allowbbt)
|
||||
struct nand_chip *chip = mtd_to_nand(mtd);
|
||||
|
||||
/* Return info from the table */
|
||||
- if (chip->bbt)
|
||||
- return nand_isbad_bbt(chip, ofs, allowbbt);
|
||||
-
|
||||
- return nand_isbad_bbm(chip, ofs);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4283,19 +4283,7 @@ static int nand_block_isbad(struct mtd_info *mtd, loff_t offs)
|
||||
int chipnr = (int)(offs >> chip->chip_shift);
|
||||
int ret;
|
||||
|
||||
- /* Select the NAND device */
|
||||
- ret = nand_get_device(chip);
|
||||
- if (ret)
|
||||
- return ret;
|
||||
-
|
||||
- nand_select_target(chip, chipnr);
|
||||
-
|
||||
- ret = nand_block_checkbad(chip, offs, 0);
|
||||
-
|
||||
- nand_deselect_target(chip);
|
||||
- nand_release_device(chip);
|
||||
-
|
||||
- return ret;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/**
|
Loading…
Add table
Add a link
Reference in a new issue