PCI: Add Kconfig option to disable deprecated pci_find_* API
[firefly-linux-kernel-4.4.55.git] / drivers / isdn / hisax / avm_pci.c
index f8b79783c8b375128a50bf119785e849e1b3e7f1..035d158779df75f328eca89c77a3e968497fb0ba 100644 (file)
@@ -830,7 +830,7 @@ static int __devinit avm_pnp_setup(struct IsdnCardState *cs)
 
 #endif /* __ISAPNP__ */
 
-#ifndef CONFIG_PCI
+#ifndef CONFIG_PCI_LEGACY
 
 static int __devinit avm_pci_setup(struct IsdnCardState *cs)
 {
@@ -872,7 +872,7 @@ static int __devinit avm_pci_setup(struct IsdnCardState *cs)
        return (1);
 }
 
-#endif /* CONFIG_PCI */
+#endif /* CONFIG_PCI_LEGACY */
 
 int __devinit
 setup_avm_pcipnp(struct IsdnCard *card)