static struct s3c2410_platform_nand eilian6410_nand_info = {
.tacls = 25,
.twrph0 = 55,
.twrph1 = 40,
.nr_sets = ARRAY_SIZE(eilian6410_nand_sets),
.sets = eilian6410_nand_sets,
};
/************************************************
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
************************************************
*/
该代码放在static struct platform_device *eilian6410_devices[] __initdata = {上面就行
同时记得添加如下头文件
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <plat/nand.h>