mirror of
https://github.com/armbian/build.git
synced 2025-08-09 20:56:57 +02:00
* Bumping EDGE kernel to 5.14.y Meson64: - removing Odroid reboot shutdown patch since its probably not needed anymore Rockchip64: - removing Rockpi S. No interest to maintain this any further - removing PBP suspend. Doesn’t align. Need inspection if some other way was mainstreamed - temporally removing Orangepi R1 * Re-adding rockpis, pbp suspend, HFLPS170 wifi and cleanup * Removing deprecated patch, fixing ap6256 wifi * Re-enable Opi R1 plus, untest * Add and fix Radxa Zero
38 lines
913 B
Diff
38 lines
913 B
Diff
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;
|
|
}
|
|
|
|
/**
|