Commit eb2dca9d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/char/hw_random.c

parent ea3ce0bc
...@@ -573,13 +573,13 @@ MODULE_LICENSE("GPL"); ...@@ -573,13 +573,13 @@ MODULE_LICENSE("GPL");
static int __init rng_init (void) static int __init rng_init (void)
{ {
int rc; int rc;
struct pci_dev *pdev; struct pci_dev *pdev = NULL;
const struct pci_device_id *ent; const struct pci_device_id *ent;
DPRINTK ("ENTER\n"); DPRINTK ("ENTER\n");
/* Probe for Intel, AMD RNGs */ /* Probe for Intel, AMD RNGs */
pci_for_each_dev(pdev) { while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
ent = pci_match_device (rng_pci_tbl, pdev); ent = pci_match_device (rng_pci_tbl, pdev);
if (ent) { if (ent) {
rng_ops = &rng_vendor_ops[ent->driver_data]; rng_ops = &rng_vendor_ops[ent->driver_data];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment