powerpc/PCI: replace pci_probe_only with pci_flags
We already use pci_flags, so this just sets pci_flags directly and removes the intermediate step of figuring out pci_probe_only, then using it to set pci_flags. The PCI core provides a pci_flags definition (currently __weak), so drop the powerpc definitions in favor of that. CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Этот коммит содержится в:
@@ -33,8 +33,6 @@
|
||||
#include <asm/machdep.h>
|
||||
#include <asm/ppc-pci.h>
|
||||
|
||||
unsigned long pci_probe_only = 0;
|
||||
|
||||
/* pci_io_base -- the base address from which io bars are offsets.
|
||||
* This is the lowest I/O base address (so bar values are always positive),
|
||||
* and it *must* be the start of ISA space if an ISA bus exists because
|
||||
@@ -55,9 +53,6 @@ static int __init pcibios_init(void)
|
||||
*/
|
||||
ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot;
|
||||
|
||||
if (pci_probe_only)
|
||||
pci_add_flags(PCI_PROBE_ONLY);
|
||||
|
||||
/* On ppc64, we always enable PCI domains and we keep domain 0
|
||||
* backward compatible in /proc for video cards
|
||||
*/
|
||||
|
Ссылка в новой задаче
Block a user