summaryrefslogtreecommitdiffstats
path: root/drivers/net/sis900.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sis900.c')
-rw-r--r--drivers/net/sis900.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c
index ddbb4bf7a..b48b726f6 100644
--- a/drivers/net/sis900.c
+++ b/drivers/net/sis900.c
@@ -182,7 +182,8 @@ static int __init sis900_probe (struct pci_dev *pci_dev, const struct pci_device
}
/* 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 */