/* This routine deallocates and removes all devices on the sppecified adapter.  */
void qla4xxx_free_ddb_list(struct scsi_qla_host *ha)
/* This routine deallocates and removes all devices on the sppecified adapter.  */
void qla4xxx_free_ddb_list(struct scsi_qla_host *ha)
{
	struct list_head *ptr;
	struct ddb_entry *ddb_entry;
	while (!list_empty(&ha->ddb_list)) {
		ptr = ha->ddb_list.next;
		ddb_entry = list_entry(ptr, struct ddb_entry, list);
		qla4xxx_free_ddb(ha, ddb_entry);
	}
}