diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-27 18:09:40 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-27 18:09:40 -0400 |
commit | 24b390aad2930b889b6e15fc7cf7bfa7c99fad21 (patch) | |
tree | 76212a1b0c6a1ade8e10a4ca31ebdd9f25e38bcf /arch/frv | |
parent | 7aa6ca4d39edf01f997b9e02cf6d2fdeb224f351 (diff) |
PCI: Remove unused "pci_probe" flags
The following flags are only used on x86, but they got copied to FR-V,
MN10300, and SuperH:
PCI_PROBE_BIOS
PCI_PROBE_CONF1
PCI_PROBE_CONF2
PCI_ASSIGN_ROMS
PCI_NO_CHECKS
PCI_BIOS_IRQ_SCAN
PCI_ASSIGN_ALL_BUSSES
FR-V and MN10300 do test for PCI_ASSIGN_ROMS, but they never set it, so
it's dead code.
Remove the unused flags above.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.c | 8 | ||||
-rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.h | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/frv/mb93090-mb00/pci-frv.c b/arch/frv/mb93090-mb00/pci-frv.c index 0635bd6c2af3..34bb4b13e079 100644 --- a/arch/frv/mb93090-mb00/pci-frv.c +++ b/arch/frv/mb93090-mb00/pci-frv.c | |||
@@ -175,14 +175,6 @@ static void __init pcibios_assign_resources(void) | |||
175 | if (!r->start && r->end) | 175 | if (!r->start && r->end) |
176 | pci_assign_resource(dev, idx); | 176 | pci_assign_resource(dev, idx); |
177 | } | 177 | } |
178 | |||
179 | if (pci_probe & PCI_ASSIGN_ROMS) { | ||
180 | r = &dev->resource[PCI_ROM_RESOURCE]; | ||
181 | r->end -= r->start; | ||
182 | r->start = 0; | ||
183 | if (r->end) | ||
184 | pci_assign_resource(dev, PCI_ROM_RESOURCE); | ||
185 | } | ||
186 | } | 178 | } |
187 | } | 179 | } |
188 | 180 | ||
diff --git a/arch/frv/mb93090-mb00/pci-frv.h b/arch/frv/mb93090-mb00/pci-frv.h index a7e487fe76ed..d51992ff5a61 100644 --- a/arch/frv/mb93090-mb00/pci-frv.h +++ b/arch/frv/mb93090-mb00/pci-frv.h | |||
@@ -14,14 +14,6 @@ | |||
14 | #define DBG(x...) | 14 | #define DBG(x...) |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | #define PCI_PROBE_BIOS 0x0001 | ||
18 | #define PCI_PROBE_CONF1 0x0002 | ||
19 | #define PCI_PROBE_CONF2 0x0004 | ||
20 | #define PCI_NO_CHECKS 0x0400 | ||
21 | #define PCI_ASSIGN_ROMS 0x1000 | ||
22 | #define PCI_BIOS_IRQ_SCAN 0x2000 | ||
23 | #define PCI_ASSIGN_ALL_BUSSES 0x4000 | ||
24 | |||
25 | extern unsigned int __nongpreldata pci_probe; | 17 | extern unsigned int __nongpreldata pci_probe; |
26 | 18 | ||
27 | /* pci-frv.c */ | 19 | /* pci-frv.c */ |