/* mraid_mm_teardown_dma_pools - Free all per adapter dma buffers @adp : Adapter softstate  */
static void mraid_mm_teardown_dma_pools(mraid_mmadp_t *)
/* mraid_mm_teardown_dma_pools - Free all per adapter dma buffers @adp : Adapter softstate  */
static void mraid_mm_teardown_dma_pools(mraid_mmadp_t *)
{
	int		i;
	mm_dmapool_t	*pool;
	for (i = 0; i < MAX_DMA_POOLS; i++) {
		pool = &adp->dma_pool_list[i];
		if (pool->handle) {
			if (pool->vaddr)
				pci_pool_free(pool->handle, pool->vaddr,
							pool->paddr);
			pci_pool_destroy(pool->handle);
			pool->handle = NULL;
		}
	}
	return;
}