diff options
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r-- | drivers/net/pcmcia/3c574_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/3c589_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/com20020_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/ibmtr_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/nmclan_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index dbef5d9cc9db..8b65e18ab230 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c | |||
@@ -449,7 +449,7 @@ static int tc574_config(struct pcmcia_device *link) | |||
449 | } | 449 | } |
450 | 450 | ||
451 | link->dev_node = &lp->node; | 451 | link->dev_node = &lp->node; |
452 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 452 | SET_NETDEV_DEV(dev, &link->dev); |
453 | 453 | ||
454 | if (register_netdev(dev) != 0) { | 454 | if (register_netdev(dev) != 0) { |
455 | printk(KERN_NOTICE "3c574_cs: register_netdev() failed\n"); | 455 | printk(KERN_NOTICE "3c574_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index 6eac62b7143c..c43c21ddb2d1 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -316,7 +316,7 @@ static int tc589_config(struct pcmcia_device *link) | |||
316 | printk(KERN_ERR "3c589_cs: invalid if_port requested\n"); | 316 | printk(KERN_ERR "3c589_cs: invalid if_port requested\n"); |
317 | 317 | ||
318 | link->dev_node = &lp->node; | 318 | link->dev_node = &lp->node; |
319 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 319 | SET_NETDEV_DEV(dev, &link->dev); |
320 | 320 | ||
321 | if (register_netdev(dev) != 0) { | 321 | if (register_netdev(dev) != 0) { |
322 | printk(KERN_ERR "3c589_cs: register_netdev() failed\n"); | 322 | printk(KERN_ERR "3c589_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index 5af2ccfdb52d..0552dddd587f 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -400,7 +400,7 @@ static int axnet_config(struct pcmcia_device *link) | |||
400 | 400 | ||
401 | info->phy_id = (i < 32) ? i : -1; | 401 | info->phy_id = (i < 32) ? i : -1; |
402 | link->dev_node = &info->node; | 402 | link->dev_node = &info->node; |
403 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 403 | SET_NETDEV_DEV(dev, &link->dev); |
404 | 404 | ||
405 | if (register_netdev(dev) != 0) { | 405 | if (register_netdev(dev) != 0) { |
406 | printk(KERN_NOTICE "axnet_cs: register_netdev() failed\n"); | 406 | printk(KERN_NOTICE "axnet_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/com20020_cs.c b/drivers/net/pcmcia/com20020_cs.c index 9a2e5006570b..51e9cb0a6d1e 100644 --- a/drivers/net/pcmcia/com20020_cs.c +++ b/drivers/net/pcmcia/com20020_cs.c | |||
@@ -302,7 +302,7 @@ static int com20020_config(struct pcmcia_device *link) | |||
302 | lp->card_flags = ARC_CAN_10MBIT; /* pretend all of them can 10Mbit */ | 302 | lp->card_flags = ARC_CAN_10MBIT; /* pretend all of them can 10Mbit */ |
303 | 303 | ||
304 | link->dev_node = &info->node; | 304 | link->dev_node = &info->node; |
305 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 305 | SET_NETDEV_DEV(dev, &link->dev); |
306 | 306 | ||
307 | i = com20020_found(dev, 0); /* calls register_netdev */ | 307 | i = com20020_found(dev, 0); /* calls register_netdev */ |
308 | 308 | ||
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 85f7c4562707..9b5ca37c6684 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -532,7 +532,7 @@ static int fmvj18x_config(struct pcmcia_device *link) | |||
532 | 532 | ||
533 | lp->cardtype = cardtype; | 533 | lp->cardtype = cardtype; |
534 | link->dev_node = &lp->node; | 534 | link->dev_node = &lp->node; |
535 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 535 | SET_NETDEV_DEV(dev, &link->dev); |
536 | 536 | ||
537 | if (register_netdev(dev) != 0) { | 537 | if (register_netdev(dev) != 0) { |
538 | printk(KERN_NOTICE "fmvj18x_cs: register_netdev() failed\n"); | 538 | printk(KERN_NOTICE "fmvj18x_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c index 14fe5fa35d86..76706e12d731 100644 --- a/drivers/net/pcmcia/ibmtr_cs.c +++ b/drivers/net/pcmcia/ibmtr_cs.c | |||
@@ -287,7 +287,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link) | |||
287 | ibmtr_hw_setup(dev, mmiobase); | 287 | ibmtr_hw_setup(dev, mmiobase); |
288 | 288 | ||
289 | link->dev_node = &info->node; | 289 | link->dev_node = &info->node; |
290 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 290 | SET_NETDEV_DEV(dev, &link->dev); |
291 | 291 | ||
292 | i = ibmtr_probe_card(dev); | 292 | i = ibmtr_probe_card(dev); |
293 | if (i != 0) { | 293 | if (i != 0) { |
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c index a5363483ec6f..2d0c6f93ed8b 100644 --- a/drivers/net/pcmcia/nmclan_cs.c +++ b/drivers/net/pcmcia/nmclan_cs.c | |||
@@ -701,7 +701,7 @@ static int nmclan_config(struct pcmcia_device *link) | |||
701 | printk(KERN_NOTICE "nmclan_cs: invalid if_port requested\n"); | 701 | printk(KERN_NOTICE "nmclan_cs: invalid if_port requested\n"); |
702 | 702 | ||
703 | link->dev_node = &lp->node; | 703 | link->dev_node = &lp->node; |
704 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 704 | SET_NETDEV_DEV(dev, &link->dev); |
705 | 705 | ||
706 | i = register_netdev(dev); | 706 | i = register_netdev(dev); |
707 | if (i != 0) { | 707 | if (i != 0) { |
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index d06a0ce7cb89..30baee7b86a2 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -646,7 +646,7 @@ static int pcnet_config(struct pcmcia_device *link) | |||
646 | mii_phy_probe(dev); | 646 | mii_phy_probe(dev); |
647 | 647 | ||
648 | link->dev_node = &info->node; | 648 | link->dev_node = &info->node; |
649 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 649 | SET_NETDEV_DEV(dev, &link->dev); |
650 | 650 | ||
651 | if (register_netdev(dev) != 0) { | 651 | if (register_netdev(dev) != 0) { |
652 | printk(KERN_NOTICE "pcnet_cs: register_netdev() failed\n"); | 652 | printk(KERN_NOTICE "pcnet_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index c6ca3764ab6d..2e795de06cb3 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -964,7 +964,7 @@ static int smc91c92_config(struct pcmcia_device *link) | |||
964 | } | 964 | } |
965 | 965 | ||
966 | link->dev_node = &smc->node; | 966 | link->dev_node = &smc->node; |
967 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 967 | SET_NETDEV_DEV(dev, &link->dev); |
968 | 968 | ||
969 | if (register_netdev(dev) != 0) { | 969 | if (register_netdev(dev) != 0) { |
970 | printk(KERN_ERR "smc91c92_cs: register_netdev() failed\n"); | 970 | printk(KERN_ERR "smc91c92_cs: register_netdev() failed\n"); |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 265852ab1a2d..f75ac716390d 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -992,7 +992,7 @@ xirc2ps_config(struct pcmcia_device * link) | |||
992 | do_reset(dev, 1); /* a kludge to make the cem56 work */ | 992 | do_reset(dev, 1); /* a kludge to make the cem56 work */ |
993 | 993 | ||
994 | link->dev_node = &local->node; | 994 | link->dev_node = &local->node; |
995 | SET_NETDEV_DEV(dev, &handle_to_dev(link)); | 995 | SET_NETDEV_DEV(dev, &link->dev); |
996 | 996 | ||
997 | if ((err=register_netdev(dev))) { | 997 | if ((err=register_netdev(dev))) { |
998 | printk(KNOT_XIRC "register_netdev() failed\n"); | 998 | printk(KNOT_XIRC "register_netdev() failed\n"); |