sysfs:|sysfs: duplicate filename 's3c2440-nand' can not be created。linux2.6的内核编译中出现的问题

因为之前我的板子nand分区打印的信息是乱码,后来发现原来是arch/arm/mach-s3c2440/mach-smdk2440.c中和arch/arm/plat-s3c24xx/common-smdk.c中nand重复了。
(1)vim arch/arm/mach-s3c2440/mach-smdk2440.c
static struct platform_device *smdk2440_devices[] __initdata = https://www.it610.com/article/{
&s3c_device_usb,
&s3c_device_lcd,
&s3c_device_wdt,
&s3c_device_i2c,
&s3c_device_iis,
&s3c_device_nand,

};

(2)vim arch/arm/plat-s3c24xx/common-smdk.c
static struct platform_device __initdata *smdk_devs[] = {
&s3c_device_nand,
&smdk_led4,
&smdk_led5,
&smdk_led6,
&smdk_led7,
};

【sysfs:|sysfs: duplicate filename 's3c2440-nand' can not be created。linux2.6的内核编译中出现的问题】将arch/arm/mach-s3c2440/mach-smdk2440.c中&s3c_device_nand,注释掉。重新编译内核,nand分区信息正常打印了。

    推荐阅读