aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp_sysfs.c
diff options
context:
space:
mode:
authorrajesh.shah@intel.com <rajesh.shah@intel.com>2005-10-13 15:05:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 18:37:01 -0400
commitc2608a111b621d5cf0e4c2876d79e67333ce5341 (patch)
tree0e90b0bc85f026c74434f132760d7a4e12cf4eab /drivers/pci/hotplug/shpchp_sysfs.c
parent7c8942f993dc069db0e0327a343bbec8a6e96074 (diff)
[PATCH] shpchp: fix oops at driver unload
At unload time, the shpchp driver does not remove sysfs files it had created in the driver's probe entry point. This patch fixes this problem. Signed-off-by: Rajesh Shah <rajesh.shah@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_sysfs.c')
-rw-r--r--drivers/pci/hotplug/shpchp_sysfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/shpchp_sysfs.c b/drivers/pci/hotplug/shpchp_sysfs.c
index 807ef66899c7..f5cfbf2c047c 100644
--- a/drivers/pci/hotplug/shpchp_sysfs.c
+++ b/drivers/pci/hotplug/shpchp_sysfs.c
@@ -89,3 +89,8 @@ void shpchp_create_ctrl_files (struct controller *ctrl)
89{ 89{
90 device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl); 90 device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl);
91} 91}
92
93void shpchp_remove_ctrl_files(struct controller *ctrl)
94{
95 device_remove_file(&ctrl->pci_dev->dev, &dev_attr_ctrl);
96}