if (entity->graph_obj.mdev == NULL)
return;
- mutex_lock(&entity->graph_obj.mdev->graph_mutex);
+ spin_lock(&entity->graph_obj.mdev->lock);
__media_entity_remove_links(entity);
- mutex_unlock(&entity->graph_obj.mdev->graph_mutex);
+ spin_unlock(&entity->graph_obj.mdev->lock);
}
EXPORT_SYMBOL_GPL(media_entity_remove_links);
{
int ret;
- mutex_lock(&link->source->entity->graph_obj.mdev->graph_mutex);
+ spin_lock(&link->source->entity->graph_obj.mdev->lock);
ret = __media_entity_setup_link(link, flags);
- mutex_unlock(&link->source->entity->graph_obj.mdev->graph_mutex);
+ spin_unlock(&link->source->entity->graph_obj.mdev->lock);
return ret;
}
void media_remove_intf_link(struct media_link *link)
{
- mutex_lock(&link->graph_obj.mdev->graph_mutex);
+ spin_lock(&link->graph_obj.mdev->lock);
__media_remove_intf_link(link);
- mutex_unlock(&link->graph_obj.mdev->graph_mutex);
+ spin_unlock(&link->graph_obj.mdev->lock);
}
EXPORT_SYMBOL_GPL(media_remove_intf_link);
if (intf->graph_obj.mdev == NULL)
return;
- mutex_lock(&intf->graph_obj.mdev->graph_mutex);
+ spin_lock(&intf->graph_obj.mdev->lock);
__media_remove_intf_links(intf);
- mutex_unlock(&intf->graph_obj.mdev->graph_mutex);
+ spin_unlock(&intf->graph_obj.mdev->lock);
}
EXPORT_SYMBOL_GPL(media_remove_intf_links);