Commit 7b3e03d5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in sound/core/memalloc.c

parent 1cfc90ec
...@@ -823,12 +823,12 @@ static struct prealloc_dev prealloc_devices[] __initdata = { ...@@ -823,12 +823,12 @@ static struct prealloc_dev prealloc_devices[] __initdata = {
static void __init preallocate_cards(void) static void __init preallocate_cards(void)
{ {
struct pci_dev *pci; struct pci_dev *pci = NULL;
int card; int card;
card = 0; card = 0;
pci_for_each_dev(pci) { while ((pci = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
struct prealloc_dev *dev; struct prealloc_dev *dev;
if (card >= SNDRV_CARDS) if (card >= SNDRV_CARDS)
break; break;
......
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