ChangeSet 1.947.23.4, 2003/02/05 17:17:06+11:00, stanley.wang@linux.co.intel.com [PATCH] PCI Hotplug: Remove procfs stuff from pci_hotplug_core Here is a little patch that remove procfs stuff in pci_hotplug_core.c Remove /proc entry for pci_hotplug_core. diff -Nru a/drivers/hotplug/pci_hotplug_core.c b/drivers/hotplug/pci_hotplug_core.c --- a/drivers/hotplug/pci_hotplug_core.c Thu Feb 6 14:52:13 2003 +++ b/drivers/hotplug/pci_hotplug_core.c Thu Feb 6 14:52:13 2003 @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include @@ -131,12 +130,6 @@ "133 MHz PCIX 533", /* 0x13 */ }; -#ifdef CONFIG_PROC_FS -extern struct proc_dir_entry *proc_bus_pci_dir; -static struct proc_dir_entry *slotdir = NULL; -static const char *slotdir_name = "slots"; -#endif - #ifdef CONFIG_HOTPLUG_PCI_CPCI extern int cpci_hotplug_init(int debug); extern void cpci_hotplug_exit(void); @@ -568,11 +561,6 @@ goto err_subsys; } -#ifdef CONFIG_PROC_FS - /* create mount point for pcihpfs */ - slotdir = proc_mkdir(slotdir_name, proc_bus_pci_dir); -#endif - info (DRIVER_DESC " version: " DRIVER_VERSION "\n"); goto exit; @@ -584,11 +572,6 @@ static void __exit pci_hotplug_exit (void) { -#ifdef CONFIG_PROC_FS - if (slotdir) - remove_proc_entry(slotdir_name, proc_bus_pci_dir); -#endif - cpci_hotplug_exit(); subsystem_unregister(&hotplug_slots_subsys); }