aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/setup-bus.c4
-rw-r--r--include/linux/pci.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 704608945780..170a3eda9dd3 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -27,7 +27,7 @@
27#include <linux/slab.h> 27#include <linux/slab.h>
28 28
29 29
30static void pbus_assign_resources_sorted(struct pci_bus *bus) 30static void pbus_assign_resources_sorted(const struct pci_bus *bus)
31{ 31{
32 struct pci_dev *dev; 32 struct pci_dev *dev;
33 struct resource *res; 33 struct resource *res;
@@ -495,7 +495,7 @@ void __ref pci_bus_size_bridges(struct pci_bus *bus)
495} 495}
496EXPORT_SYMBOL(pci_bus_size_bridges); 496EXPORT_SYMBOL(pci_bus_size_bridges);
497 497
498void __ref pci_bus_assign_resources(struct pci_bus *bus) 498void __ref pci_bus_assign_resources(const struct pci_bus *bus)
499{ 499{
500 struct pci_bus *b; 500 struct pci_bus *b;
501 struct pci_dev *dev; 501 struct pci_dev *dev;
diff --git a/include/linux/pci.h b/include/linux/pci.h
index a1af2fe00639..7baf2a5db12a 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -708,7 +708,7 @@ ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void
708int pci_vpd_truncate(struct pci_dev *dev, size_t size); 708int pci_vpd_truncate(struct pci_dev *dev, size_t size);
709 709
710/* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ 710/* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */
711void pci_bus_assign_resources(struct pci_bus *bus); 711void pci_bus_assign_resources(const struct pci_bus *bus);
712void pci_bus_size_bridges(struct pci_bus *bus); 712void pci_bus_size_bridges(struct pci_bus *bus);
713int pci_claim_resource(struct pci_dev *, int); 713int pci_claim_resource(struct pci_dev *, int);
714void pci_assign_unassigned_resources(void); 714void pci_assign_unassigned_resources(void);