|
|
@@ -1014,11 +1014,11 @@ static int spinand_init(struct spinand_device *spinand)
|
|
|
for (i = 0; i < nand->memorg.ntargets; i++) {
|
|
|
ret = spinand_select_target(spinand, i);
|
|
|
if (ret)
|
|
|
- goto err_free_bufs;
|
|
|
+ goto err_manuf_cleanup;
|
|
|
|
|
|
ret = spinand_lock_block(spinand, BL_ALL_UNLOCKED);
|
|
|
if (ret)
|
|
|
- goto err_free_bufs;
|
|
|
+ goto err_manuf_cleanup;
|
|
|
}
|
|
|
|
|
|
ret = nanddev_init(nand, &spinand_ops, THIS_MODULE);
|