Skip to content

Commit

Permalink
[PATCH] gt96100: move to pci_get_device API
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Sep 19, 2006
1 parent 53ccce2 commit b921c3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/gt96100eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit b921c3d

Please sign in to comment.