/* We have a separate function, don't assume that the chain can't be reused.  */
int tsi148_dma_list_empty(struct vme_dma_list *)
/* We have a separate function, don't assume that the chain can't be reused.  */
int tsi148_dma_list_empty(struct vme_dma_list *)
{
	struct list_head *pos, *temp;
        struct tsi148_dma_entry *entry;
	list_for_each_safe(pos, temp, &(list->entries)) {
		list_del(pos);
		entry = list_entry(pos, struct tsi148_dma_entry, list);
		kfree(entry);
	}
	return (0);
}