[PATCH 2/10] drivers/char: pci_find_device remove (drivers/char/istallion.c)

From: Jiri Slaby
Date: Sat Sep 10 2005 - 07:24:15 EST


Signed-off-by: Jiri Slaby <xslaby@xxxxxxxxxx>

istallion.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c
--- a/drivers/char/istallion.c
+++ b/drivers/char/istallion.c
@@ -4602,11 +4602,12 @@ static int stli_findpcibrds(void)
printk("stli_findpcibrds()\n");
#endif

- while ((dev = pci_find_device(PCI_VENDOR_ID_STALLION,
- PCI_DEVICE_ID_ECRA, dev))) {
- if ((rc = stli_initpcibrd(BRD_ECPPCI, dev)))
+ while ((dev = pci_get_device(PCI_VENDOR_ID_STALLION,
+ PCI_DEVICE_ID_ECRA, dev)))
+ if ((rc = stli_initpcibrd(BRD_ECPPCI, dev))) {
+ pci_dev_put(dev);
return(rc);
- }
+ }

return(0);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/