提交 79ac44c8 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[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: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 aa79a84f
......@@ -232,7 +232,7 @@ static int isp_video_get_graph_data(struct isp_video *video,
int ret;
mutex_lock(&mdev->graph_mutex);
ret = media_graph_walk_init(&graph, entity->graph_obj.mdev);
ret = media_graph_walk_init(&graph, mdev);
if (ret) {
mutex_unlock(&mdev->graph_mutex);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册