mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01:00
MTD: nand: mxs_nand_spl: Fix empty function pointer for BBT
The initialization function calls a nand_chip.scan_bbt(mtd) but scan_bbt is never initialized resulting in an undefined function pointer. This will direct the function pointer to nand_default_bbt defined in the same file. Signed-off-by: Adam Ford <aford173@gmail.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
This commit is contained in:
parent
65a106e36f
commit
96d0be07e7
@ -185,6 +185,7 @@ static int mxs_nand_init(void)
|
|||||||
mtd = nand_to_mtd(&nand_chip);
|
mtd = nand_to_mtd(&nand_chip);
|
||||||
/* set mtd functions */
|
/* set mtd functions */
|
||||||
nand_chip.cmdfunc = mxs_nand_command;
|
nand_chip.cmdfunc = mxs_nand_command;
|
||||||
|
nand_chip.scan_bbt = nand_default_bbt;
|
||||||
nand_chip.numchips = 1;
|
nand_chip.numchips = 1;
|
||||||
|
|
||||||
/* identify flash device */
|
/* identify flash device */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user