axnet_cs and udev
Russell King
rmk+pcmcia at arm.linux.org.uk
Sun Mar 7 23:16:19 GMT 2004
On Sun, Mar 07, 2004 at 08:42:18PM +0100, Stefan Wolf wrote:
> And after this, cardmgr tries to start the network-script for the eth%d -
> device, which apparently failes...
Can you try this patch:
--- orig/drivers/net/pcmcia/axnet_cs.c Wed Feb 18 22:34:15 2004
+++ linux/drivers/net/pcmcia/axnet_cs.c Sun Mar 7 23:15:55 2004
@@ -430,8 +430,6 @@ static void axnet_config(dev_link_t *lin
ei_status.block_input = &block_input;
ei_status.block_output = &block_output;
- strcpy(info->node.dev_name, dev->name);
-
if (inb(dev->base_addr + AXNET_TEST) != 0)
info->flags |= IS_AX88790;
else
@@ -474,6 +472,8 @@ static void axnet_config(dev_link_t *lin
goto failed;
}
+ strcpy(info->node.dev_name, dev->name);
+
link->dev = &info->node;
link->state &= ~DEV_CONFIG_PENDING;
return;
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
More information about the linux-pcmcia
mailing list