All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to pci_get_device
@ 2004-09-21  6:53 Scott Feldman
  2004-09-21  7:40 ` [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Feldman @ 2004-09-21  6:53 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 765 bytes --]

Use pci_get_device instead of pci_find_device as pci device returned
from pci_find_device can disappear at any momemt in time.

Signed-off-by: Scott Feldman <sfeldma@pobox.com>

diff -Naurp linux-2.6.9-rc2-mm1/drivers/net/sunhme.c linux-2.6.9-rc2-mm1-dsf/drivers/net/sunhme.c
--- linux-2.6.9-rc2-mm1/drivers/net/sunhme.c	2004-08-14 03:55:10.000000000 -0700
+++ linux-2.6.9-rc2-mm1-dsf/drivers/net/sunhme.c	2004-09-20 22:51:59.709768488 -0700
@@ -3311,7 +3311,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;



[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to
  2004-09-21  6:53 [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to pci_get_device Scott Feldman
@ 2004-09-21  7:40 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2004-09-21  7:40 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

On Mon, Sep 20, 2004 at 11:53:03PM -0700, Scott Feldman wrote:
> Use pci_get_device instead of pci_find_device as pci device returned
> from pci_find_device can disappear at any momemt in time.

Should be converted to the pci_driver infrastructure instead.

> 
> Signed-off-by: Scott Feldman <sfeldma@pobox.com>
> 
> diff -Naurp linux-2.6.9-rc2-mm1/drivers/net/sunhme.c linux-2.6.9-rc2-mm1-dsf/drivers/net/sunhme.c
> --- linux-2.6.9-rc2-mm1/drivers/net/sunhme.c	2004-08-14 03:55:10.000000000 -0700
> +++ linux-2.6.9-rc2-mm1-dsf/drivers/net/sunhme.c	2004-09-20 22:51:59.709768488 -0700
> @@ -3311,7 +3311,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;
> 
> 

> _______________________________________________
> Kernel-janitors mailing list
> Kernel-janitors@lists.osdl.org
> http://lists.osdl.org/mailman/listinfo/kernel-janitors

---end quoted text---

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-21  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21  6:53 [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to pci_get_device Scott Feldman
2004-09-21  7:40 ` [Kernel-janitors] [PATCH -mm 6/9] pci_find_device to Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.