mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
mtd: nand: gpmi: Check for scan_bbt() error
In case of scan_bbt() failure, we should better propagate it. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Huang Shijie <shijie.huang@intel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
706d5b2899
commit
899b834a46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user