diff options
Diffstat (limited to 'drivers/net/ethernet/8390/etherh.c')
| -rw-r--r-- | drivers/net/ethernet/8390/etherh.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/ethernet/8390/etherh.c b/drivers/net/ethernet/8390/etherh.c index 8322c54972f3..78c6fb4b1143 100644 --- a/drivers/net/ethernet/8390/etherh.c +++ b/drivers/net/ethernet/8390/etherh.c | |||
| @@ -463,12 +463,6 @@ etherh_open(struct net_device *dev) | |||
| 463 | { | 463 | { |
| 464 | struct ei_device *ei_local = netdev_priv(dev); | 464 | struct ei_device *ei_local = netdev_priv(dev); |
| 465 | 465 | ||
| 466 | if (!is_valid_ether_addr(dev->dev_addr)) { | ||
| 467 | printk(KERN_WARNING "%s: invalid ethernet MAC address\n", | ||
| 468 | dev->name); | ||
| 469 | return -EINVAL; | ||
| 470 | } | ||
| 471 | |||
| 472 | if (request_irq(dev->irq, __ei_interrupt, 0, dev->name, dev)) | 466 | if (request_irq(dev->irq, __ei_interrupt, 0, dev->name, dev)) |
| 473 | return -EAGAIN; | 467 | return -EAGAIN; |
| 474 | 468 | ||
| @@ -527,7 +521,7 @@ static void __init etherh_banner(void) | |||
| 527 | * Read the ethernet address string from the on board rom. | 521 | * Read the ethernet address string from the on board rom. |
| 528 | * This is an ascii string... | 522 | * This is an ascii string... |
| 529 | */ | 523 | */ |
| 530 | static int __devinit etherh_addr(char *addr, struct expansion_card *ec) | 524 | static int etherh_addr(char *addr, struct expansion_card *ec) |
| 531 | { | 525 | { |
| 532 | struct in_chunk_dir cd; | 526 | struct in_chunk_dir cd; |
| 533 | char *s; | 527 | char *s; |
| @@ -657,7 +651,7 @@ static const struct net_device_ops etherh_netdev_ops = { | |||
| 657 | static u32 etherh_regoffsets[16]; | 651 | static u32 etherh_regoffsets[16]; |
| 658 | static u32 etherm_regoffsets[16]; | 652 | static u32 etherm_regoffsets[16]; |
| 659 | 653 | ||
| 660 | static int __devinit | 654 | static int |
| 661 | etherh_probe(struct expansion_card *ec, const struct ecard_id *id) | 655 | etherh_probe(struct expansion_card *ec, const struct ecard_id *id) |
| 662 | { | 656 | { |
| 663 | const struct etherh_data *data = id->data; | 657 | const struct etherh_data *data = id->data; |
| @@ -775,7 +769,7 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
| 775 | return ret; | 769 | return ret; |
| 776 | } | 770 | } |
| 777 | 771 | ||
| 778 | static void __devexit etherh_remove(struct expansion_card *ec) | 772 | static void etherh_remove(struct expansion_card *ec) |
| 779 | { | 773 | { |
| 780 | struct net_device *dev = ecard_get_drvdata(ec); | 774 | struct net_device *dev = ecard_get_drvdata(ec); |
| 781 | 775 | ||
| @@ -839,7 +833,7 @@ static const struct ecard_id etherh_ids[] = { | |||
| 839 | 833 | ||
| 840 | static struct ecard_driver etherh_driver = { | 834 | static struct ecard_driver etherh_driver = { |
| 841 | .probe = etherh_probe, | 835 | .probe = etherh_probe, |
| 842 | .remove = __devexit_p(etherh_remove), | 836 | .remove = etherh_remove, |
| 843 | .id_table = etherh_ids, | 837 | .id_table = etherh_ids, |
| 844 | .drv = { | 838 | .drv = { |
| 845 | .name = DRV_NAME, | 839 | .name = DRV_NAME, |
