Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10684
b: refs/heads/master
c: c2608a1
h: refs/heads/master
v: v3
  • Loading branch information
rajesh.shah@intel.com authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent 121956b commit c0d7bb5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c8942f993dc069db0e0327a343bbec8a6e96074
refs/heads/master: c2608a111b621d5cf0e4c2876d79e67333ce5341
1 change: 1 addition & 0 deletions trunk/drivers/pci/hotplug/shpchp.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ extern void get_hp_params_from_firmware(struct pci_dev *dev,
struct hotplug_params *hpp);
extern int shpchprm_get_physical_slot_number(struct controller *ctrl,
u32 *sun, u8 busnum, u8 devnum);
extern void shpchp_remove_ctrl_files(struct controller *ctrl);


/* Global variables */
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/pci/hotplug/shpchp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ static void __exit unload_shpchpd(void)
ctrl = shpchp_ctrl_list;

while (ctrl) {
shpchp_remove_ctrl_files(ctrl);
cleanup_slots(ctrl);

kfree (ctrl->pci_bus);
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/pci/hotplug/shpchp_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@ void shpchp_create_ctrl_files (struct controller *ctrl)
{
device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl);
}

void shpchp_remove_ctrl_files(struct controller *ctrl)
{
device_remove_file(&ctrl->pci_dev->dev, &dev_attr_ctrl);
}

0 comments on commit c0d7bb5

Please sign in to comment.