diff options
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r-- | drivers/net/tulip/de4x5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index ba7f47c2dcff..ee4215ca63f0 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -3945,7 +3945,7 @@ create_packet(struct net_device *dev, char *frame, int len) | |||
3945 | static int | 3945 | static int |
3946 | EISA_signature(char *name, struct device *device) | 3946 | EISA_signature(char *name, struct device *device) |
3947 | { | 3947 | { |
3948 | int i, status = 0, siglen = sizeof(de4x5_signatures)/sizeof(c_char *); | 3948 | int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures); |
3949 | struct eisa_device *edev; | 3949 | struct eisa_device *edev; |
3950 | 3950 | ||
3951 | *name = '\0'; | 3951 | *name = '\0'; |
@@ -3966,7 +3966,7 @@ EISA_signature(char *name, struct device *device) | |||
3966 | static int | 3966 | static int |
3967 | PCI_signature(char *name, struct de4x5_private *lp) | 3967 | PCI_signature(char *name, struct de4x5_private *lp) |
3968 | { | 3968 | { |
3969 | int i, status = 0, siglen = sizeof(de4x5_signatures)/sizeof(c_char *); | 3969 | int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures); |
3970 | 3970 | ||
3971 | if (lp->chipset == DC21040) { | 3971 | if (lp->chipset == DC21040) { |
3972 | strcpy(name, "DE434/5"); | 3972 | strcpy(name, "DE434/5"); |
@@ -5072,7 +5072,7 @@ mii_get_phy(struct net_device *dev) | |||
5072 | { | 5072 | { |
5073 | struct de4x5_private *lp = netdev_priv(dev); | 5073 | struct de4x5_private *lp = netdev_priv(dev); |
5074 | u_long iobase = dev->base_addr; | 5074 | u_long iobase = dev->base_addr; |
5075 | int i, j, k, n, limit=sizeof(phy_info)/sizeof(struct phy_table); | 5075 | int i, j, k, n, limit=ARRAY_SIZE(phy_info); |
5076 | int id; | 5076 | int id; |
5077 | 5077 | ||
5078 | lp->active = 0; | 5078 | lp->active = 0; |