[PATCH] ne2k calling pci_enable twice.

©[@ÄØÿ¿8þÿ¿Adam Schrotenboer (davej@suse.de)
Wed, 7 Feb 2001 18:24:57 +0000 (GMT)


Hi Alan,
This looks odd to me, we're enabling the device twice.
Patch against ac4.

regards,

Dave.

-- 
| Dave Jones.        http://www.suse.de/~davej
| SuSE Labs

diff -urN --exclude-from=/home/davej/.exclude linux/drivers/net/ne2k-pci.c linux-dj/drivers/net/ne2k-pci.c --- linux/drivers/net/ne2k-pci.c Wed Feb 7 12:42:40 2001 +++ linux-dj/drivers/net/ne2k-pci.c Wed Feb 7 18:18:38 2001 @@ -213,9 +213,6 @@ return -ENODEV; }

- i = pci_enable_device (pdev); - if (i) - return i; irq = pdev->irq;

if (request_region (ioaddr, NE_IO_EXTENT, "ne2k-pci") == NULL) {

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/