diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c @@ -6,6 +6,8 @@ * Copyright (C) 1996, 1998, 1999, 2002, 2003 David S. Miller (davem@redhat.com) * * Changes : + * 2005/05/27 Jiri Slaby + * - obsolete pci_find_device changed to pci_get_device * 2000/11/11 Willy Tarreau * - port to non-sparc architectures. Tested only on x86 and * only currently works with QFE PCI cards. @@ -3318,7 +3320,7 @@ static int __init happy_meal_pci_probe(v struct pci_dev *pdev = NULL; int cards = 0; - while ((pdev = pci_find_device(PCI_VENDOR_ID_SUN, + while ((pdev = pci_get_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_HAPPYMEAL, pdev)) != NULL) { if (pci_enable_device(pdev)) continue; @@ -3398,6 +3400,7 @@ static void __exit happy_meal_cleanup_mo hp->hblock_dvma); iounmap(hp->gregs); pci_release_regions(hp->happy_dev); + pci_dev_put(hp->happy_dev); } #endif free_netdev(dev);