Commit b4877f58 authored by Russell King's avatar Russell King

[PCMCIA] Fix non-PCI PCMCIA bridge oops

Only call pci_remove_behind_bridge() if we have a PCI-based bridge
controller.
parent c78e8101
......@@ -270,5 +270,6 @@ void cb_free(socket_info_t * s)
{
struct pci_dev *bridge = s->cap.cb_dev;
pci_remove_behind_bridge(bridge);
if (bridge)
pci_remove_behind_bridge(bridge);
}
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