[PATCH 2.6] hw_random.c: replace pci_find_device
From: Hanna Linder (hannal_at_us.ibm.com)
Date: 10/21/04
- Previous message: K.R. Foley: "Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U9"
- Next in thread: Jeff Garzik: "Re: [PATCH 2.6] hw_random.c: replace pci_find_device"
- Reply: Jeff Garzik: "Re: [PATCH 2.6] hw_random.c: replace pci_find_device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 21 Oct 2004 11:38:44 -0700 To: lkml <linux-kernel@vger.kernel.org>, kernel-janitors <kernel-janitors@lists.osdl.org>
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];
-
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/
- Previous message: K.R. Foley: "Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U9"
- Next in thread: Jeff Garzik: "Re: [PATCH 2.6] hw_random.c: replace pci_find_device"
- Reply: Jeff Garzik: "Re: [PATCH 2.6] hw_random.c: replace pci_find_device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|