/* This fills out all the uninitialized function pointers with the defaults. The flash ID is read and the mtd/chip structures are filled with the appropriate values.  */
int nand_scan(struct mtd_info *mtd, int maxchips)
/* This fills out all the uninitialized function pointers with the defaults. The flash ID is read and the mtd/chip structures are filled with the appropriate values.  */
int nand_scan(struct mtd_info *mtd, int maxchips)
{
	int ret;
	ret = nand_scan_ident(mtd, maxchips, NULL);
	if (!ret)
		ret = nand_scan_tail(mtd);
	return ret;
}