FreeBSD/sys/dev/bhnd/bcma/bcma_subr.c
/**
 * Deallocate the given device info structure and any associated resources.
 * 
 * @param bus The requesting bus device.
 * @param dinfo Device info to be deallocated.
 */
Deallocate the given device info structure and any associated resources.

@param bus The requesting bus device.
@param dinfo Device info to be deallocated.
Deallocate the given device info structure and any associated resources . @param bus The requesting bus device . @param dinfo Device info to be deallocated .
void
bcma_free_dinfo(device_t bus, struct bcma_devinfo *dinfo)
{
	resource_list_free(&dinfo->resources);
	if (dinfo->corecfg != NULL)
		bcma_free_corecfg(dinfo->corecfg);
	if (dinfo->res_agent != NULL) {
		bhnd_release_resource(bus, SYS_RES_MEMORY, dinfo->rid_agent,
		    dinfo->res_agent);
	}
	free(dinfo, M_BHND);
}
void bcma_free_dinfo ( device_t bus , struct bcma_devinfo * dinfo ) { resource_list_free ( & dinfo -> resources ) ; if ( dinfo -> corecfg != NULL ) bcma_free_corecfg ( dinfo -> corecfg ) ; if ( dinfo -> res_agent != NULL ) { bhnd_release_resource ( bus , SYS_RES_MEMORY , dinfo -> rid_agent , dinfo -> res_agent ) ; } free ( dinfo , M_BHND ) ; }
Deallocate the given device info structure and any associated resources.
Deallocate the given device info structure and any associated resources .
/* Release agent resource, if any */