Skip to content

Commit

Permalink
natsemi: Use NATSEMI_TIMER_FREQ consistently
Browse files Browse the repository at this point in the history
The natsemi driver has a define NATSEMI_TIMER_FREQ which looks like it
controls the normal frequency of the chip poll timer but in fact only
takes effect for the first run of the timer.  Adjust the value of the
define to match that used by the timer and use the define consistently.

Signed-off-by: Mark Brown <broonie@sirena.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Mark Brown authored and David S. Miller committed Oct 10, 2007
1 parent 9265fab commit f2cade1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/natsemi.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static int full_duplex[MAX_UNITS];
#define TX_TIMEOUT (2*HZ)

#define NATSEMI_HW_TIMEOUT 400
#define NATSEMI_TIMER_FREQ 3*HZ
#define NATSEMI_TIMER_FREQ 5*HZ
#define NATSEMI_PG0_NREGS 64
#define NATSEMI_RFDR_NREGS 8
#define NATSEMI_PG1_NREGS 4
Expand Down Expand Up @@ -1798,7 +1798,7 @@ static void netdev_timer(unsigned long data)
struct net_device *dev = (struct net_device *)data;
struct netdev_private *np = netdev_priv(dev);
void __iomem * ioaddr = ns_ioaddr(dev);
int next_tick = 5*HZ;
int next_tick = NATSEMI_TIMER_FREQ;

if (netif_msg_timer(np)) {
/* DO NOT read the IntrStatus register,
Expand Down

0 comments on commit f2cade1

Please sign in to comment.