diff options
-rw-r--r-- | drivers/net/ni65.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ni65.c b/drivers/net/ni65.c index d769a88ddc98..df5f869e8d8f 100644 --- a/drivers/net/ni65.c +++ b/drivers/net/ni65.c | |||
@@ -481,8 +481,9 @@ static int __init ni65_probe1(struct net_device *dev,int ioaddr) | |||
481 | else { | 481 | else { |
482 | if(dev->dma == 0) { | 482 | if(dev->dma == 0) { |
483 | /* 'stuck test' from lance.c */ | 483 | /* 'stuck test' from lance.c */ |
484 | long dma_channels = ((inb(DMA1_STAT_REG) >> 4) & 0x0f) | | 484 | unsigned long dma_channels = |
485 | (inb(DMA2_STAT_REG) & 0xf0); | 485 | ((inb(DMA1_STAT_REG) >> 4) & 0x0f) |
486 | | (inb(DMA2_STAT_REG) & 0xf0); | ||
486 | for(i=1;i<5;i++) { | 487 | for(i=1;i<5;i++) { |
487 | int dma = dmatab[i]; | 488 | int dma = dmatab[i]; |
488 | if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510")) | 489 | if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510")) |