Merge "ipq40xx: nand: Initialize nand flash device before flashing"

This commit is contained in:
Linux Build Service Account 2018-02-27 02:16:53 -08:00 committed by Gerrit - the friendly Code Review server
commit 9dbc4f95f1

View file

@ -415,7 +415,8 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
dev = (int)simple_strtoul(argv[2], NULL, 10);
set_dev(dev);
if (set_dev(dev))
return 1;
return 0;
}