summaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/aironet4500_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/aironet4500_cs.c')
-rw-r--r--drivers/net/pcmcia/aironet4500_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pcmcia/aironet4500_cs.c b/drivers/net/pcmcia/aironet4500_cs.c
index 641c67332..1ff446fc2 100644
--- a/drivers/net/pcmcia/aironet4500_cs.c
+++ b/drivers/net/pcmcia/aironet4500_cs.c
@@ -223,9 +223,9 @@ static dev_link_t *awc_attach(void)
dev->get_stats = &awc_get_stats;
// dev->set_multicast_list = &awc_set_multicast_list;
- ether_setup(dev);
+ strcpy(dev->name, ((struct awc_private *)dev->priv)->node.dev_name);
- dev->name = ((struct awc_private *)dev->priv)->node.dev_name;
+ ether_setup(dev);
dev->init = &awc_pcmcia_init;
dev->open = &awc_pcmcia_open;