It clash with the one from MTD and make it impossible to statically compile this code in the kernel together with MTD (and will also make problems with modules).
/*
* Scan for the NAND device
*/
-int nand_scan (struct mtd_info *mtd,int nchips)
+static int nandemul2k_scan (struct mtd_info *mtd,int nchips)
{
mtd->oobblock = PAGE_DATA_SIZE;
mtd->oobsize = PAGE_SPARE_SIZE;
CheckInit();
- nand_scan(&nandemul2k_mtd,1);
+ nandemul2k_scan(&nandemul2k_mtd,1);
// Build the partition table