summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-09-15 15:27:06 +0100
committerJeff Garzik <jeff@garzik.org>2006-09-19 00:05:45 -0400
commitb921c3d8b64fe12948088be049785de49be50990 (patch)
tree426619f6bd1d9636cdace998a63ec6885c53fa72 /drivers/net
parent53ccce2395cdc3693c22b9a94764b66dc1a4fcb4 (diff)
downloadlinux-3.10-b921c3d8b64fe12948088be049785de49be50990.tar.gz
linux-3.10-b921c3d8b64fe12948088be049785de49be50990.tar.bz2
linux-3.10-b921c3d8b64fe12948088be049785de49be50990.zip
[PATCH] gt96100: move to pci_get_device API
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/gt96100eth.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/gt96100eth.c b/drivers/net/gt96100eth.c
index 5a6d830754d..785c5bf4c6e 100644
--- a/drivers/net/gt96100eth.c
+++ b/drivers/net/gt96100eth.c
@@ -613,9 +613,9 @@ static int gt96100_init_module(void)
/*
* Stupid probe because this really isn't a PCI device
*/
- if (!(pci = pci_find_device(PCI_VENDOR_ID_MARVELL,
+ if (!(pci = pci_get_device(PCI_VENDOR_ID_MARVELL,
PCI_DEVICE_ID_MARVELL_GT96100, NULL)) &&
- !(pci = pci_find_device(PCI_VENDOR_ID_MARVELL,
+ !(pci = pci_get_device(PCI_VENDOR_ID_MARVELL,
PCI_DEVICE_ID_MARVELL_GT96100A, NULL))) {
printk(KERN_ERR __FILE__ ": GT96100 not found!\n");
return -ENODEV;
@@ -630,6 +630,8 @@ static int gt96100_init_module(void)
for (i=0; i < NUM_INTERFACES; i++)
retval |= gt96100_probe1(pci, i);
+
+ pci_dev_put(pci);
return retval;
}