diff options
Diffstat (limited to 'drivers/pci/host-bridge.c')
-rw-r--r-- | drivers/pci/host-bridge.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index 122df80592c3..a68dc613a5be 100644 --- a/drivers/pci/host-bridge.c +++ b/drivers/pci/host-bridge.c | |||
@@ -27,6 +27,14 @@ static struct pci_host_bridge *find_pci_host_bridge(struct pci_dev *dev) | |||
27 | return to_pci_host_bridge(bus->bridge); | 27 | return to_pci_host_bridge(bus->bridge); |
28 | } | 28 | } |
29 | 29 | ||
30 | void pci_set_host_bridge_release(struct pci_host_bridge *bridge, | ||
31 | void (*release_fn)(struct pci_host_bridge *), | ||
32 | void *release_data) | ||
33 | { | ||
34 | bridge->release_fn = release_fn; | ||
35 | bridge->release_data = release_data; | ||
36 | } | ||
37 | |||
30 | static bool resource_contains(struct resource *res1, struct resource *res2) | 38 | static bool resource_contains(struct resource *res1, struct resource *res2) |
31 | { | 39 | { |
32 | return res1->start <= res2->start && res1->end >= res2->end; | 40 | return res1->start <= res2->start && res1->end >= res2->end; |