Commit 8c2a1069 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/mips64/mips-boards/generic/pci.c

parent 80ab13b1
...@@ -213,7 +213,7 @@ struct pci_ops mips_pci_ops = { ...@@ -213,7 +213,7 @@ struct pci_ops mips_pci_ops = {
void __init pcibios_init(void) void __init pcibios_init(void)
{ {
#ifdef CONFIG_MIPS_MALTA #ifdef CONFIG_MIPS_MALTA
struct pci_dev *pdev; struct pci_dev *pdev = NULL;
unsigned char reg_val; unsigned char reg_val;
#endif #endif
...@@ -237,7 +237,7 @@ void __init pcibios_init(void) ...@@ -237,7 +237,7 @@ void __init pcibios_init(void)
GT_WRITE( GT_PCI0_CFGDATA_OFS, CPHYSADDR(MIPS_GT_BASE)); GT_WRITE( GT_PCI0_CFGDATA_OFS, CPHYSADDR(MIPS_GT_BASE));
#ifdef CONFIG_MIPS_MALTA #ifdef CONFIG_MIPS_MALTA
pci_for_each_dev(pdev) { while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
if ((pdev->vendor == PCI_VENDOR_ID_INTEL) if ((pdev->vendor == PCI_VENDOR_ID_INTEL)
&& (pdev->device == PCI_DEVICE_ID_INTEL_82371AB) && (pdev->device == PCI_DEVICE_ID_INTEL_82371AB)
&& (PCI_SLOT(pdev->devfn) == 0x0a)) { && (PCI_SLOT(pdev->devfn) == 0x0a)) {
......
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