mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 23:28:55 +00:00
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>
This commit is contained in:
parent
b5fbf53324
commit
c48f1670f4
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ int pci_bus_add_child(struct pci_bus *bus)
|
||||||
*
|
*
|
||||||
* Call hotplug for each new devices.
|
* 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_dev *dev;
|
||||||
struct pci_bus *child;
|
struct pci_bus *child;
|
||||||
|
|
|
@ -528,7 +528,7 @@ void pcibios_update_irq(struct pci_dev *, int irq);
|
||||||
/* Generic PCI functions used internally */
|
/* Generic PCI functions used internally */
|
||||||
|
|
||||||
extern struct pci_bus *pci_find_bus(int domain, int busnr);
|
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_bus *pci_scan_bus_parented(struct device *parent, int bus,
|
||||||
struct pci_ops *ops, void *sysdata);
|
struct pci_ops *ops, void *sysdata);
|
||||||
static inline struct pci_bus * __devinit pci_scan_bus(int bus, struct pci_ops *ops,
|
static inline struct pci_bus * __devinit pci_scan_bus(int bus, struct pci_ops *ops,
|
||||||
|
|
Loading…
Add table
Reference in a new issue