Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324206
b: refs/heads/master
c: 0a14057
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas committed Aug 22, 2012
1 parent b39621e commit 0ffe858
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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: 34e548431a7a2e73121c4a452eb3d1b0659bd77f
refs/heads/master: 0a140577316268b3263fd169d339188ad1636af3
15 changes: 12 additions & 3 deletions trunk/drivers/pcmcia/cardbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,17 @@ int __ref cb_alloc(struct pcmcia_socket *s)
*/
void cb_free(struct pcmcia_socket *s)
{
struct pci_dev *bridge = s->cb_dev;
struct pci_dev *bridge, *dev, *tmp;
struct pci_bus *bus;

if (bridge)
pci_stop_and_remove_behind_bridge(bridge);
bridge = s->cb_dev;
if (!bridge)
return;

bus = bridge->subordinate;
if (!bus)
return;

list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list)
pci_stop_and_remove_bus_device(dev);
}

0 comments on commit 0ffe858

Please sign in to comment.