Commit cc927c9a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: make pci_setup_device(), pci_alloc_primary_bus() and...

[PATCH] PCI: make pci_setup_device(), pci_alloc_primary_bus() and pci_alloc_primary_bus_parented() static

No one is calling these functions.
parent 5388d99a
......@@ -396,7 +396,7 @@ static void pci_read_irq(struct pci_dev *dev)
* Returns 0 on success and -1 if unknown type of device (not normal, bridge
* or CardBus).
*/
int pci_setup_device(struct pci_dev * dev)
static int pci_setup_device(struct pci_dev * dev)
{
u32 class;
......@@ -641,7 +641,7 @@ int __devinit pci_bus_exists(const struct list_head *list, int nr)
return 0;
}
struct pci_bus * __devinit pci_alloc_primary_bus_parented(struct device *parent, int bus)
static struct pci_bus * __devinit pci_alloc_primary_bus_parented(struct device *parent, int bus)
{
struct pci_bus *b;
......@@ -692,7 +692,6 @@ EXPORT_SYMBOL(pci_devices);
EXPORT_SYMBOL(pci_root_buses);
#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL(pci_setup_device);
EXPORT_SYMBOL(pci_add_new_bus);
EXPORT_SYMBOL(pci_do_scan_bus);
EXPORT_SYMBOL(pci_scan_slot);
......
......@@ -546,11 +546,6 @@ static inline struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *s
{
return pci_scan_bus_parented(NULL, bus, ops, sysdata);
}
struct pci_bus *pci_alloc_primary_bus_parented(struct device * parent, int bus);
static inline struct pci_bus *pci_alloc_primary_bus(int bus)
{
return pci_alloc_primary_bus_parented(NULL, bus);
}
int pci_scan_slot(struct pci_bus *bus, int devfn);
void pci_bus_add_devices(struct pci_bus *bus);
int pci_proc_attach_device(struct pci_dev *dev);
......@@ -561,7 +556,6 @@ void pci_name_device(struct pci_dev *dev);
char *pci_class_name(u32 class);
void pci_read_bridge_bases(struct pci_bus *child);
struct resource *pci_find_parent_resource(const struct pci_dev *dev, struct resource *res);
int pci_setup_device(struct pci_dev *dev);
int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge);
extern struct pci_dev *pci_get_dev(struct pci_dev *dev);
extern void pci_put_dev(struct pci_dev *dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment