aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tulip/de4x5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tulip/de4x5.c')
-rw-r--r--drivers/net/tulip/de4x5.c6
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)
3945static int 3945static int
3946EISA_signature(char *name, struct device *device) 3946EISA_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)
3966static int 3966static int
3967PCI_signature(char *name, struct de4x5_private *lp) 3967PCI_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;