Commit 90c1774a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in sound/pci/rme9652/hammerfall_mem.c

parent 6aaa2158
...@@ -205,7 +205,7 @@ static void hammerfall_free_buffers (void) ...@@ -205,7 +205,7 @@ static void hammerfall_free_buffers (void)
static int __init alsa_hammerfall_mem_init(void) static int __init alsa_hammerfall_mem_init(void)
{ {
int i; int i;
struct pci_dev *pci; struct pci_dev *pci = NULL;
hammerfall_buf_t *rbuf; hammerfall_buf_t *rbuf;
/* make sure our buffer records are clean */ /* make sure our buffer records are clean */
...@@ -225,12 +225,12 @@ static int __init alsa_hammerfall_mem_init(void) ...@@ -225,12 +225,12 @@ static int __init alsa_hammerfall_mem_init(void)
i = 0; /* card number */ i = 0; /* card number */
rbuf = hammerfall_buffers; rbuf = hammerfall_buffers;
pci_for_each_dev(pci) { while ((pci = pci_find_device(PCI_VENDOR_ID_XILINX, PCI_ANY_ID, pci)) != NULL) {
int k; int k;
/* check for Hammerfall and Hammerfall DSP cards */ /* check for Hammerfall and Hammerfall DSP cards */
if (pci->vendor != 0x10ee || (pci->device != 0x3fc4 && pci->device != 0x3fc5)) if (pci->device != 0x3fc4 && pci->device != 0x3fc5)
continue; continue;
if (!enable[i]) if (!enable[i])
......
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