svn commit: r201277 - head/sys/dev/pci

John Baldwin jhb at FreeBSD.org
Wed Dec 30 19:46:10 UTC 2009


Author: jhb
Date: Wed Dec 30 19:46:09 2009
New Revision: 201277
URL: http://svn.freebsd.org/changeset/base/201277

Log:
  Remove no longer used pci_release_resource().

Modified:
  head/sys/dev/pci/pci.c
  head/sys/dev/pci/pci_private.h

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Wed Dec 30 19:44:31 2009	(r201276)
+++ head/sys/dev/pci/pci.c	Wed Dec 30 19:46:09 2009	(r201277)
@@ -3700,25 +3700,6 @@ pci_alloc_resource(device_t dev, device_
 }
 
 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)
 {

Modified: head/sys/dev/pci/pci_private.h
==============================================================================
--- head/sys/dev/pci/pci_private.h	Wed Dec 30 19:44:31 2009	(r201276)
+++ head/sys/dev/pci/pci_private.h	Wed Dec 30 19:46:09 2009	(r201277)
@@ -82,8 +82,6 @@ int		pci_msix_count_method(device_t dev,
 struct resource	*pci_alloc_resource(device_t dev, device_t child, 
 		    int type, int *rid, u_long start, u_long end, u_long count,
 		    u_int flags);
-int		pci_release_resource(device_t dev, device_t child, int type,
-		    int rid, struct resource *r);
 int		pci_activate_resource(device_t dev, device_t child, int type,
 		    int rid, struct resource *r);
 void		pci_delete_resource(device_t dev, device_t child, 


More information about the svn-src-all mailing list