diff -urN /mnt/disk/linux/drivers/net/3c505.c /linux/drivers/net/3c505.c --- /mnt/disk/linux/drivers/net/3c505.c Thu Nov 9 21:28:06 2000 +++ /linux/drivers/net/3c505.c Thu Nov 9 22:58:51 2000 @@ -854,6 +854,7 @@ static int elp_open(struct net_device *dev) { elp_device *adapter; + int retval; adapter = dev->priv; @@ -893,16 +894,17 @@ /* * install our interrupt service routine */ - if (request_irq(dev->irq, &elp_interrupt, 0, "3c505", dev)) { - return -EAGAIN; + if ((retval = request_irq(dev->irq, &elp_interrupt, 0, dev->name, dev))) { + printk("%s: could not allocate IRQ%d\n", dev->name, dev->irq); + return retval; } - if (request_dma(dev->dma, "3c505")) { - printk("%s: could not allocate DMA channel\n", dev->name); - return -EAGAIN; + if ((retval = request_dma(dev->dma, dev->name))) { + printk("%s: could not allocate DMA%d channel\n", dev->name, dev->dma); + return retval; } adapter->dma_buffer = (void *) dma_mem_alloc(DMA_BUFFER_SIZE); if (!adapter->dma_buffer) { - printk("Could not allocate DMA buffer\n"); + printk("%s: could not allocate DMA buffer\n", dev->name); } adapter->dmaing = 0;