Re: [PATCH] PCI changes for 2.5.69

Greg KH (greg@kroah.com)
Thu, 22 May 2003 15:06:01 -0700


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 *);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/