summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2009-02-03 15:45:26 -0800
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 19:29:35 -0700
commitc48f1670f42b71f39f4a3bfba01ffb691cc9206c (patch)
treea407190fd3141b9d0bbb4a861f334f0bb4be6143
parentb5fbf53324f65646154e172af350674d5a2a1629 (diff)
downloadop-kernel-dev-c48f1670f42b71f39f4a3bfba01ffb691cc9206c.zip
op-kernel-dev-c48f1670f42b71f39f4a3bfba01ffb691cc9206c.tar.gz
PCI: constify pci_bus_add_devices()
drivers/pci/hotplug/fakephp.c:283: warning: passing argument 1 of 'pci_bus_add_devices' discards qualifiers from pointer target type Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/bus.c2
-rw-r--r--include/linux/pci.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 52b54f0..118c777 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -133,7 +133,7 @@ int pci_bus_add_child(struct pci_bus *bus)
*
* Call hotplug for each new devices.
*/
-void pci_bus_add_devices(struct pci_bus *bus)
+void pci_bus_add_devices(const struct pci_bus *bus)
{
struct pci_dev *dev;
struct pci_bus *child;
diff --git a/include/linux/pci.h b/include/linux/pci.h
index b5d6d0e..a1af2fe 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -528,7 +528,7 @@ void pcibios_update_irq(struct pci_dev *, int irq);
/* Generic PCI functions used internally */
extern struct pci_bus *pci_find_bus(int domain, int busnr);
-void pci_bus_add_devices(struct pci_bus *bus);
+void pci_bus_add_devices(const struct pci_bus *bus);
struct pci_bus *pci_scan_bus_parented(struct device *parent, int bus,
struct pci_ops *ops, void *sysdata);
static inline struct pci_bus * __devinit pci_scan_bus(int bus, struct pci_ops *ops,
OpenPOWER on IntegriCloud