aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-02-18 13:44:29 -0500
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 22:29:35 -0400
commitea7415512a07add2b09c070c9a5d1950833cf9b3 (patch)
tree1c0d7468f57d38f74f4649cb9f4655b1937cf2a0 /drivers/pci/setup-bus.c
parentc48f1670f42b71f39f4a3bfba01ffb691cc9206c (diff)
PCI: constify pci_bus_assign_resources()
drivers/pci/hotplug/fakephp.c: In function 'pci_rescan_bus': drivers/pci/hotplug/fakephp.c:271: warning: passing argument 1 of 'pci_bus_assign_resources' discards qualifiers from pointer target type Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r--drivers/pci/setup-bus.c4
1 files changed, 2 insertions, 2 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;