diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-11-04 00:39:29 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-07 17:58:48 -0500 |
commit | b95168e010a405add13aa010d7c45b55dc4026c7 (patch) | |
tree | 8bb7b7a3feba623964378fc2024419c6aaf84df5 /arch/x86 | |
parent | 745216025de0354eea23493d994e3fc0ab7369fc (diff) |
x86/PCI: Keep resource allocation functions after boot
The PCI resource allocation functions will be used for hot-added
devices, so keep them around.
[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/pci/i386.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c index 1bd672ab0084..8656ea88cf66 100644 --- a/arch/x86/pci/i386.c +++ b/arch/x86/pci/i386.c | |||
@@ -201,7 +201,7 @@ EXPORT_SYMBOL(pcibios_align_resource); | |||
201 | * as well. | 201 | * as well. |
202 | */ | 202 | */ |
203 | 203 | ||
204 | static void __init pcibios_allocate_bridge_resources(struct pci_dev *dev) | 204 | static void pcibios_allocate_bridge_resources(struct pci_dev *dev) |
205 | { | 205 | { |
206 | int idx; | 206 | int idx; |
207 | struct resource *r; | 207 | struct resource *r; |
@@ -223,7 +223,7 @@ static void __init pcibios_allocate_bridge_resources(struct pci_dev *dev) | |||
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ||
226 | static void __init pcibios_allocate_bus_resources(struct pci_bus *bus) | 226 | static void pcibios_allocate_bus_resources(struct pci_bus *bus) |
227 | { | 227 | { |
228 | struct pci_bus *child; | 228 | struct pci_bus *child; |
229 | 229 | ||
@@ -239,7 +239,7 @@ struct pci_check_idx_range { | |||
239 | int end; | 239 | int end; |
240 | }; | 240 | }; |
241 | 241 | ||
242 | static void __init pcibios_allocate_dev_resources(struct pci_dev *dev, int pass) | 242 | static void pcibios_allocate_dev_resources(struct pci_dev *dev, int pass) |
243 | { | 243 | { |
244 | int idx, disabled, i; | 244 | int idx, disabled, i; |
245 | u16 command; | 245 | u16 command; |
@@ -292,7 +292,7 @@ static void __init pcibios_allocate_dev_resources(struct pci_dev *dev, int pass) | |||
292 | } | 292 | } |
293 | } | 293 | } |
294 | 294 | ||
295 | static void __init pcibios_allocate_resources(struct pci_bus *bus, int pass) | 295 | static void pcibios_allocate_resources(struct pci_bus *bus, int pass) |
296 | { | 296 | { |
297 | struct pci_dev *dev; | 297 | struct pci_dev *dev; |
298 | struct pci_bus *child; | 298 | struct pci_bus *child; |
@@ -306,7 +306,7 @@ static void __init pcibios_allocate_resources(struct pci_bus *bus, int pass) | |||
306 | } | 306 | } |
307 | } | 307 | } |
308 | 308 | ||
309 | static void __init pcibios_allocate_dev_rom_resource(struct pci_dev *dev) | 309 | static void pcibios_allocate_dev_rom_resource(struct pci_dev *dev) |
310 | { | 310 | { |
311 | struct resource *r; | 311 | struct resource *r; |
312 | 312 | ||
@@ -324,7 +324,7 @@ static void __init pcibios_allocate_dev_rom_resource(struct pci_dev *dev) | |||
324 | r->start = 0; | 324 | r->start = 0; |
325 | } | 325 | } |
326 | } | 326 | } |
327 | static void __init pcibios_allocate_rom_resources(struct pci_bus *bus) | 327 | static void pcibios_allocate_rom_resources(struct pci_bus *bus) |
328 | { | 328 | { |
329 | struct pci_dev *dev; | 329 | struct pci_dev *dev; |
330 | struct pci_bus *child; | 330 | struct pci_bus *child; |