mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-07 05:29:08 +00:00
[ sunxi-dev ] Moving to 4.19.y Tested: H3, H5 (unstable?!), H6(no hdmi), R40 (no hdmi), A83T, A64, ... some wireless drivers were left. They need to be adjusted for 4.19.y
This commit is contained in:
parent
08caff89c3
commit
ced3bf0a40
32 changed files with 2354 additions and 6697 deletions
|
@ -0,0 +1,35 @@
|
|||
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
|
||||
index 77533f7..8b3b184 100644
|
||||
--- a/drivers/mtd/nand/raw/nand_base.c
|
||||
+++ b/drivers/mtd/nand/raw/nand_base.c
|
||||
@@ -532,11 +532,7 @@ static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int allowbbt)
|
||||
{
|
||||
struct nand_chip *chip = mtd_to_nand(mtd);
|
||||
|
||||
- if (!chip->bbt)
|
||||
- return chip->block_bad(mtd, ofs);
|
||||
-
|
||||
- /* Return info from the table */
|
||||
- return nand_isbad_bbt(mtd, ofs, allowbbt);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3030,16 +3026,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 */
|
||||
- nand_get_device(mtd, FL_READING);
|
||||
- chip->select_chip(mtd, chipnr);
|
||||
-
|
||||
- ret = nand_block_checkbad(mtd, offs, 0);
|
||||
-
|
||||
- chip->select_chip(mtd, -1);
|
||||
- nand_release_device(mtd);
|
||||
-
|
||||
- return ret;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/**
|
Loading…
Add table
Add a link
Reference in a new issue