ChangeSet 1.1212, 2003/05/22 14:31:07-07:00, greg@kroah.com [PATCH] PCI: remove pci_insert_device() as no one uses it anymore. drivers/pci/hotplug.c | 21 --------------------- include/linux/pci.h | 1 - 2 files changed, 22 deletions(-) diff -Nru a/drivers/pci/hotplug.c b/drivers/pci/hotplug.c --- a/drivers/pci/hotplug.c Thu May 22 14:49:44 2003 +++ b/drivers/pci/hotplug.c Thu May 22 14:49:44 2003 @@ -207,26 +207,6 @@ #endif /* CONFIG_HOTPLUG */ -/** - * pci_insert_device - insert a pci device - * @dev: the device to insert - * @bus: where to insert it - * - * Link the device to both the global PCI device chain and the - * per-bus list of devices, add the /proc entry. - */ -void -pci_insert_device(struct pci_dev *dev, struct pci_bus *bus) -{ - list_add_tail(&dev->bus_list, &bus->devices); - list_add_tail(&dev->global_list, &pci_devices); -#ifdef CONFIG_PROC_FS - pci_proc_attach_device(dev); -#endif - /* add sysfs device files */ - pci_create_sysfs_dev_files(dev); -} - static void pci_free_resources(struct pci_dev *dev) { @@ -300,7 +280,6 @@ } #ifdef CONFIG_HOTPLUG -EXPORT_SYMBOL(pci_insert_device); EXPORT_SYMBOL(pci_remove_bus_device); EXPORT_SYMBOL(pci_remove_behind_bridge); #endif diff -Nru a/include/linux/pci.h b/include/linux/pci.h --- a/include/linux/pci.h Thu May 22 14:49:44 2003 +++ b/include/linux/pci.h Thu May 22 14:49:44 2003 @@ -660,7 +660,6 @@ /* New-style probing supporting hot-pluggable devices */ int pci_register_driver(struct pci_driver *); void pci_unregister_driver(struct pci_driver *); -void pci_insert_device(struct pci_dev *, struct pci_bus *); void pci_remove_bus_device(struct pci_dev *); void pci_remove_behind_bridge(struct pci_dev *); struct pci_driver *pci_dev_driver(const struct pci_dev *);