--- Quote Start ---
Dear wang!
I met the same problem as you .Have you solved it successfully?
I am relly puzzled now.
--- Quote End ---
:) i have fix it
add those lines at the bottom of setup.c
#if defined(CONFIG_DM9000)
# include <linux/dm9000.h>
static struct resource dm9k_resource[] = {
[0] = {
.start = DM9000A_BASE,
.end = DM9000A_BASE + 3,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = DM9000A_BASE + 4,
.end = DM9000A_BASE + 4 + 3,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = DM9000A_IRQ,
.end = DM9000A_IRQ,
.flags = IORESOURCE_IRQ | IRQF_TRIGGER_HIGH,
}
};
static struct dm9000_plat_data dm9k_platdata = {
.flags = DM9000_PLATF_16BITONLY,
// default MAC addr
.dev_addr = {01,01,01,01,01,01},
};
static struct platform_device dm9k_device = {
.name = "dm9000",
.id = 0,
.num_resources = ARRAY_SIZE(dm9k_resource),
.resource = dm9k_resource,
.dev = {
.platform_data = &dm9k_platdata,
}
};
static int __init dm9k_device_init(void)
{
/* customizes platform devices, or adds new ones */
platform_device_register(&dm9k_device);
return 0;
}
arch_initcall(dm9k_device_init);
# endif