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/mn10300 | |
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/mn10300')
-rw-r--r-- | arch/mn10300/unit-asb2305/pci-asb2305.c | 22 | ||||
-rw-r--r-- | arch/mn10300/unit-asb2305/pci-asb2305.h | 7 |
2 files changed, 10 insertions, 19 deletions
diff --git a/arch/mn10300/unit-asb2305/pci-asb2305.c b/arch/mn10300/unit-asb2305/pci-asb2305.c index b5b036f64275..b7ab8378964c 100644 --- a/arch/mn10300/unit-asb2305/pci-asb2305.c +++ b/arch/mn10300/unit-asb2305/pci-asb2305.c | |||
@@ -183,18 +183,16 @@ static int __init pcibios_assign_resources(void) | |||
183 | struct pci_dev *dev = NULL; | 183 | struct pci_dev *dev = NULL; |
184 | struct resource *r; | 184 | struct resource *r; |
185 | 185 | ||
186 | if (!(pci_probe & PCI_ASSIGN_ROMS)) { | 186 | /* Try to use BIOS settings for ROMs, otherwise let |
187 | /* Try to use BIOS settings for ROMs, otherwise let | 187 | pci_assign_unassigned_resources() allocate the new |
188 | pci_assign_unassigned_resources() allocate the new | 188 | addresses. */ |
189 | addresses. */ | 189 | for_each_pci_dev(dev) { |
190 | for_each_pci_dev(dev) { | 190 | r = &dev->resource[PCI_ROM_RESOURCE]; |
191 | r = &dev->resource[PCI_ROM_RESOURCE]; | 191 | if (!r->flags || !r->start) |
192 | if (!r->flags || !r->start) | 192 | continue; |
193 | continue; | 193 | if (pci_claim_resource(dev, PCI_ROM_RESOURCE) < 0) { |
194 | if (pci_claim_resource(dev, PCI_ROM_RESOURCE) < 0) { | 194 | r->end -= r->start; |
195 | r->end -= r->start; | 195 | r->start = 0; |
196 | r->start = 0; | ||
197 | } | ||
198 | } | 196 | } |
199 | } | 197 | } |
200 | 198 | ||
diff --git a/arch/mn10300/unit-asb2305/pci-asb2305.h b/arch/mn10300/unit-asb2305/pci-asb2305.h index 9e17aca5a2a1..96c484b12226 100644 --- a/arch/mn10300/unit-asb2305/pci-asb2305.h +++ b/arch/mn10300/unit-asb2305/pci-asb2305.h | |||
@@ -20,13 +20,6 @@ | |||
20 | #define DBG(x...) | 20 | #define DBG(x...) |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | #define PCI_PROBE_BIOS 1 | ||
24 | #define PCI_PROBE_CONF1 2 | ||
25 | #define PCI_PROBE_CONF2 4 | ||
26 | #define PCI_NO_CHECKS 0x400 | ||
27 | #define PCI_ASSIGN_ROMS 0x1000 | ||
28 | #define PCI_BIOS_IRQ_SCAN 0x2000 | ||
29 | |||
30 | extern unsigned int pci_probe; | 23 | extern unsigned int pci_probe; |
31 | 24 | ||
32 | /* pci-asb2305.c */ | 25 | /* pci-asb2305.c */ |