diff options
Diffstat (limited to 'drivers/net/ethernet/i825xx/ether1.c')
| -rw-r--r-- | drivers/net/ethernet/i825xx/ether1.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/drivers/net/ethernet/i825xx/ether1.c b/drivers/net/ethernet/i825xx/ether1.c index 067db3f13e91..5d353c660068 100644 --- a/drivers/net/ethernet/i825xx/ether1.c +++ b/drivers/net/ethernet/i825xx/ether1.c | |||
| @@ -72,7 +72,7 @@ static void ether1_timeout(struct net_device *dev); | |||
| 72 | 72 | ||
| 73 | /* ------------------------------------------------------------------------- */ | 73 | /* ------------------------------------------------------------------------- */ |
| 74 | 74 | ||
| 75 | static char version[] __devinitdata = "ether1 ethernet driver (c) 2000 Russell King v1.07\n"; | 75 | static char version[] = "ether1 ethernet driver (c) 2000 Russell King v1.07\n"; |
| 76 | 76 | ||
| 77 | #define BUS_16 16 | 77 | #define BUS_16 16 |
| 78 | #define BUS_8 8 | 78 | #define BUS_8 8 |
| @@ -250,7 +250,7 @@ ether1_readbuffer (struct net_device *dev, void *data, unsigned int start, unsig | |||
| 250 | } while (thislen); | 250 | } while (thislen); |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | static int __devinit | 253 | static int |
| 254 | ether1_ramtest(struct net_device *dev, unsigned char byte) | 254 | ether1_ramtest(struct net_device *dev, unsigned char byte) |
| 255 | { | 255 | { |
| 256 | unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL); | 256 | unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL); |
| @@ -304,7 +304,7 @@ ether1_reset (struct net_device *dev) | |||
| 304 | return BUS_16; | 304 | return BUS_16; |
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | static int __devinit | 307 | static int |
| 308 | ether1_init_2(struct net_device *dev) | 308 | ether1_init_2(struct net_device *dev) |
| 309 | { | 309 | { |
| 310 | int i; | 310 | int i; |
| @@ -638,12 +638,6 @@ ether1_txalloc (struct net_device *dev, int size) | |||
| 638 | static int | 638 | static int |
| 639 | ether1_open (struct net_device *dev) | 639 | ether1_open (struct net_device *dev) |
| 640 | { | 640 | { |
| 641 | if (!is_valid_ether_addr(dev->dev_addr)) { | ||
| 642 | printk(KERN_WARNING "%s: invalid ethernet MAC address\n", | ||
| 643 | dev->name); | ||
| 644 | return -EINVAL; | ||
| 645 | } | ||
| 646 | |||
| 647 | if (request_irq(dev->irq, ether1_interrupt, 0, "ether1", dev)) | 641 | if (request_irq(dev->irq, ether1_interrupt, 0, "ether1", dev)) |
| 648 | return -EAGAIN; | 642 | return -EAGAIN; |
| 649 | 643 | ||
| @@ -972,7 +966,7 @@ ether1_setmulticastlist (struct net_device *dev) | |||
| 972 | 966 | ||
| 973 | /* ------------------------------------------------------------------------- */ | 967 | /* ------------------------------------------------------------------------- */ |
| 974 | 968 | ||
| 975 | static void __devinit ether1_banner(void) | 969 | static void ether1_banner(void) |
| 976 | { | 970 | { |
| 977 | static unsigned int version_printed = 0; | 971 | static unsigned int version_printed = 0; |
| 978 | 972 | ||
| @@ -991,7 +985,7 @@ static const struct net_device_ops ether1_netdev_ops = { | |||
| 991 | .ndo_set_mac_address = eth_mac_addr, | 985 | .ndo_set_mac_address = eth_mac_addr, |
| 992 | }; | 986 | }; |
| 993 | 987 | ||
| 994 | static int __devinit | 988 | static int |
| 995 | ether1_probe(struct expansion_card *ec, const struct ecard_id *id) | 989 | ether1_probe(struct expansion_card *ec, const struct ecard_id *id) |
| 996 | { | 990 | { |
| 997 | struct net_device *dev; | 991 | struct net_device *dev; |
| @@ -1052,7 +1046,7 @@ ether1_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
| 1052 | return ret; | 1046 | return ret; |
| 1053 | } | 1047 | } |
| 1054 | 1048 | ||
| 1055 | static void __devexit ether1_remove(struct expansion_card *ec) | 1049 | static void ether1_remove(struct expansion_card *ec) |
| 1056 | { | 1050 | { |
| 1057 | struct net_device *dev = ecard_get_drvdata(ec); | 1051 | struct net_device *dev = ecard_get_drvdata(ec); |
| 1058 | 1052 | ||
| @@ -1070,7 +1064,7 @@ static const struct ecard_id ether1_ids[] = { | |||
| 1070 | 1064 | ||
| 1071 | static struct ecard_driver ether1_driver = { | 1065 | static struct ecard_driver ether1_driver = { |
| 1072 | .probe = ether1_probe, | 1066 | .probe = ether1_probe, |
| 1073 | .remove = __devexit_p(ether1_remove), | 1067 | .remove = ether1_remove, |
| 1074 | .id_table = ether1_ids, | 1068 | .id_table = ether1_ids, |
| 1075 | .drv = { | 1069 | .drv = { |
| 1076 | .name = "ether1", | 1070 | .name = "ether1", |
