lkml.org 
[lkml]   [2005]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/10] drivers/char: pci_find_device remove (drivers/char/stallion.c)
Jiri Slaby wrote:
> for (i = 0; (i < stl_nrpcibrds); i++)
> - while ((dev = pci_find_device(stl_pcibrds[i].vendid,
> + while ((dev = pci_get_device(stl_pcibrds[i].vendid,
> stl_pcibrds[i].devid, dev))) {
>
> /*
> @@ -2737,8 +2737,10 @@ static inline int stl_findpcibrds(void)
> continue;
>
> rc = stl_initpcibrd(stl_pcibrds[i].brdtype, dev);
> - if (rc)
> + if (rc) {
> + pci_dev_put(dev);
> return(rc);
> + }

convert to PCI probing

Jeff



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

\
 
 \ /
  Last update: 2005-09-10 23:00    [W:0.235 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site