diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c --- a/drivers/char/specialix.c +++ b/drivers/char/specialix.c @@ -63,7 +63,9 @@ * Revision 1.10: Oct 22 1999 / Jan 21 2000. * Added stuff for setserial. * Nicolas Mailhot (Nicolas.Mailhot@email.enst.fr) - * + * Revision 1.11: May 25 2005 + * obsolete pci_find_device --> pci_get_device + * Jiri Slaby */ #define VERSION "1.11" @@ -2512,9 +2514,9 @@ static int __init specialix_init(void) i++; continue; } - pdev = pci_find_device (PCI_VENDOR_ID_SPECIALIX, - PCI_DEVICE_ID_SPECIALIX_IO8, - pdev); + pdev = pci_get_device (PCI_VENDOR_ID_SPECIALIX, + PCI_DEVICE_ID_SPECIALIX_IO8, + pdev); if (!pdev) break; if (pci_enable_device(pdev)) @@ -2527,7 +2529,10 @@ static int __init specialix_init(void) sx_board[i].flags |= SX_BOARD_IS_PCI; if (!sx_probe(&sx_board[i])) found ++; + } + if (i >= SX_NBOARD) + pci_dev_put(pdev); } #endif