patch-2.3.99-pre7 linux/drivers/net/sis900.c

Next file: linux/drivers/net/sk_mca.c
Previous file: linux/drivers/net/shaper.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/sis900.c linux/drivers/net/sis900.c
@@ -182,7 +182,8 @@
 	}
 
 	/* setup various bits in PCI command register */
-	pci_enable_device (pci_dev);
+	if (pci_enable_device (pci_dev))
+		return -ENODEV;
 	pci_set_master(pci_dev);
 
 	/* do the real low level jobs */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)