summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-12-30 19:46:09 +0000
committerjhb <jhb@FreeBSD.org>2009-12-30 19:46:09 +0000
commit1dadd0cd8c623d53fcd8b522218b5515c2d67560 (patch)
tree0aa8ec5bfa9d2536e478334b0f686822f1387a9e /sys/dev/pci/pci.c
parent8d2a9e1d3c36dbd1d69e79aeb5fa5ba9f0356de0 (diff)
downloadFreeBSD-src-1dadd0cd8c623d53fcd8b522218b5515c2d67560.zip
FreeBSD-src-1dadd0cd8c623d53fcd8b522218b5515c2d67560.tar.gz
Remove no longer used pci_release_resource().
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index b83005d..b4b4051 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -3700,25 +3700,6 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
}
int
-pci_release_resource(device_t dev, device_t child, int type, int rid,
- struct resource *r)
-{
-
- if (device_get_parent(child) != dev)
- return (BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
- type, rid, r));
-
- /*
- * For BARs we don't actually want to release the resource.
- * Instead, we deactivate the resource if needed and then give
- * ownership of the BAR back to the bus. This is handled for us
- * in resource_list_release() since we use resource_list_reserve()
- * for BARs.
- */
- return (bus_generic_rl_release_resource(dev, child, type, rid, r));
-}
-
-int
pci_activate_resource(device_t dev, device_t child, int type, int rid,
struct resource *r)
{
OpenPOWER on IntegriCloud