diff options
Diffstat (limited to 'src/drivers/net/eepro.c')
-rw-r--r-- | src/drivers/net/eepro.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c index 521c720d..2ea4b000 100644 --- a/src/drivers/net/eepro.c +++ b/src/drivers/net/eepro.c @@ -265,11 +265,12 @@ static unsigned eeprom_reg = EEPROM_REG_PRO; #define eepro_full_reset(ioaddr) outb(RESET_CMD, ioaddr); udelay(255); /* do a nice reset */ -#define eepro_sel_reset(ioaddr) { \ - outb(SEL_RESET_CMD, ioaddr); \ - SLOW_DOWN; \ - SLOW_DOWN; \ - } +#define eepro_sel_reset(ioaddr) \ + do { \ + outb ( SEL_RESET_CMD, ioaddr ); \ + (void) SLOW_DOWN; \ + (void) SLOW_DOWN; \ + } while (0) /* clear all interrupts */ #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG) @@ -332,7 +333,7 @@ static void eepro_reset(struct nic *nic) /* Intialise XMT */ outw((XMT_LOWER_LIMIT << 8), nic->ioaddr + xmt_bar); eepro_sel_reset(nic->ioaddr); - tx_start = tx_end = (XMT_LOWER_LIMIT << 8); + tx_start = tx_end = (unsigned int) (XMT_LOWER_LIMIT << 8); tx_last = 0; eepro_en_rx(nic->ioaddr); } |