Commit 899b834a authored by Fabio Estevam's avatar Fabio Estevam Committed by Brian Norris

mtd: nand: gpmi: Check for scan_bbt() error

In case of scan_bbt() failure, we should better propagate it.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarHuang Shijie <shijie.huang@intel.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 706d5b28
......@@ -1950,7 +1950,9 @@ static int gpmi_nand_init(struct gpmi_nand_data *this)
ret = nand_boot_init(this);
if (ret)
goto err_out;
chip->scan_bbt(mtd);
ret = chip->scan_bbt(mtd);
if (ret)
goto err_out;
ppdata.of_node = this->pdev->dev.of_node;
ret = mtd_device_parse_register(mtd, NULL, &ppdata, NULL, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment