Commit d7ef941b authored by Stanley Wang's avatar Stanley Wang Committed by Greg Kroah-Hartman

[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.
parent 280c1c9a
......@@ -40,7 +40,6 @@
#include <linux/namei.h>
#include <linux/pci.h>
#include <linux/dnotify.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>
......@@ -131,12 +130,6 @@ static char *pci_bus_speed_strings[] = {
"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 @@ static int __init pci_hotplug_init (void)
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 int __init pci_hotplug_init (void)
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);
}
......
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