Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53376
b: refs/heads/master
c: e70ea26
h: refs/heads/master
v: v3
  • Loading branch information
Linas Vepstas authored and Greg Kroah-Hartman committed May 3, 2007
1 parent b493e10 commit b1aefca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da65944be2441191539f50ce71cd1f8030699be1
refs/heads/master: e70ea2634afe7d04ffaf7417df7bfdbfdc460e10
10 changes: 2 additions & 8 deletions trunk/drivers/pci/hotplug/rpaphp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,18 +424,12 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
return retval;
}

static int __disable_slot(struct slot *slot)
static inline int __disable_slot(struct slot *slot)
{
struct pci_dev *dev, *tmp;

if (slot->state == NOT_CONFIGURED)
return -EINVAL;

list_for_each_entry_safe(dev, tmp, &slot->bus->devices, bus_list) {
eeh_remove_bus_device(dev);
pci_remove_bus_device(dev);
}

pcibios_remove_pci_devices(slot->bus);
slot->state = NOT_CONFIGURED;
return 0;
}
Expand Down

0 comments on commit b1aefca

Please sign in to comment.