All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH 2.6] hw_random.c: replace pci_find_device
@ 2004-10-21 18:38 ` Hanna Linder
  0 siblings, 0 replies; 10+ messages in thread
From: Hanna Linder @ 2004-10-21 18:38 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: greg, hannal, jgarzik

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



As pci_find_device is going away I've replaced it with pci_get_device.
for_each_pci_dev is a macro wrapper around pci_get_device.
If someone with this hardware could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9cln/drivers/char/hw_random.c linux-2.6.9patch3/drivers/char/hw_random.c
--- linux-2.6.9cln/drivers/char/hw_random.c	2004-10-18 16:35:53.000000000 -0700
+++ linux-2.6.9patch3/drivers/char/hw_random.c	2004-10-20 14:52:42.000000000 -0700
@@ -581,7 +581,7 @@ static int __init rng_init (void)
 	DPRINTK ("ENTER\n");
 
 	/* Probe for Intel, AMD RNGs */
-	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
+	for_each_pci_dev(pdev) {
 		ent = pci_match_device (rng_pci_tbl, pdev);
 		if (ent) {
 			rng_ops = &rng_vendor_ops[ent->driver_data];


[-- 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] 10+ messages in thread

end of thread, other threads:[~2004-10-25 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 18:38 [KJ] [PATCH 2.6] hw_random.c: replace pci_find_device Hanna Linder
2004-10-21 18:38 ` Hanna Linder
2004-10-21 22:48 ` [KJ] " Jeff Garzik
2004-10-21 22:48   ` Jeff Garzik
2004-10-25 16:48   ` [KJ] " Jon Smirl
2004-10-25 16:48     ` Jon Smirl
2004-10-25 17:10     ` [KJ] " Nishanth Aravamudan
2004-10-25 17:10       ` Nishanth Aravamudan
2004-10-25 16:59   ` Chris Wright
2004-10-25 16:59     ` Chris Wright

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.