diff options
author | Adam Ford <aford173@gmail.com> | 2018-12-30 10:11:16 -0600 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-01-28 20:55:46 +0100 |
commit | 96d0be07e7498e7174daa6f3b56fc807b9feb71d (patch) | |
tree | d48a466a8432e1678e18c6be741750892171c6b6 | |
parent | 65a106e36fdd307a241bec9f0af1564889f10830 (diff) |
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>
-rw-r--r-- | drivers/mtd/nand/raw/mxs_nand_spl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 2d7bbe83cc..c628f3adec 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -185,6 +185,7 @@ static int mxs_nand_init(void) mtd = nand_to_mtd(&nand_chip); /* set mtd functions */ nand_chip.cmdfunc = mxs_nand_command; + nand_chip.scan_bbt = nand_default_bbt; nand_chip.numchips = 1; /* identify flash device */ |