/* mptsas_del_device_components - Cleaning the list @ioc: Pointer to MPT_ADAPTER structure  */
static void mptsas_del_device_components(MPT_ADAPTER *ioc)
/* mptsas_del_device_components - Cleaning the list @ioc: Pointer to MPT_ADAPTER structure  */
static void mptsas_del_device_components(MPT_ADAPTER *ioc)
{
	struct mptsas_device_info	*sas_info, *next;
	mutex_lock(&ioc->sas_device_info_mutex);
	list_for_each_entry_safe(sas_info, next, &ioc->sas_device_info_list,
		list) {
		list_del(&sas_info->list);
		kfree(sas_info);
	}
	mutex_unlock(&ioc->sas_device_info_mutex);
}