modify dm9000
author刘益星 <lyx@rock-chips.com>
Tue, 1 Jun 2010 07:26:28 +0000 (07:26 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:35:21 +0000 (13:35 +0800)
arch/arm/mach-rk2818/board-midsdk.c
arch/arm/mach-rk2818/devices.c

index 375e4cdcec0d0da45d8c112bf9175b398f03d27e..d33e7f2a9c720dc6f54d52f8377a11abc2c93c22 100644 (file)
@@ -400,7 +400,9 @@ struct rk2818bl_info rk2818_bl_info = {
 
 static struct platform_device *devices[] __initdata = {
        &rk2818_device_uart1,
+#ifdef CONFIG_DM9000
        &rk2818_device_dm9k,
+#endif
 #ifdef CONFIG_I2C0_RK2818
        &rk2818_device_i2c0,
 #endif
index 21db7b6d527a491a880c9a1b7ffac89d24d5de5e..b2070d4398e0a17c0330049331f0ce8d312fb76d 100644 (file)
@@ -260,6 +260,7 @@ struct platform_device rk2818_device_backlight = {
 
 //net device
 /* DM9000 */
+#ifdef CONFIG_DM9000
 static struct resource dm9k_resource[] = {
        [0] = {
                .start = RK2818_NANDC_PHYS + 0x800 + (1*0x100 + 0x8),    //nand_cs1+nand_cmd
@@ -296,6 +297,7 @@ struct platform_device rk2818_device_dm9k = {
                .platform_data = &dm9k_platdata,
        }
 };
+#endif
 
 /*ADC*/
 static struct resource rk2818_adc_resource[] = {