mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
[media] omap3isp: Use a local media device pointer instead
The function has a local variable that points to the media device; use that instead of finding the media device under the entity. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
aa79a84f65
commit
79ac44c88f
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ static int isp_video_get_graph_data(struct isp_video *video,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mutex_lock(&mdev->graph_mutex);
|
mutex_lock(&mdev->graph_mutex);
|
||||||
ret = media_graph_walk_init(&graph, entity->graph_obj.mdev);
|
ret = media_graph_walk_init(&graph, mdev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
mutex_unlock(&mdev->graph_mutex);
|
mutex_unlock(&mdev->graph_mutex);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue