From: Sakari Ailus Date: Mon, 28 Nov 2016 11:48:03 +0000 (-0200) Subject: [media] xilinx: Use a local media device pointer instead X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2312d8b8a09a5524bd511c6626b6d666dbd1afb1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] xilinx: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/xilinx/xilinx-dma.c b/drivers/media/platform/xilinx/xilinx-dma.c index 065df82a2cef..522cdfdd3345 100644 --- a/drivers/media/platform/xilinx/xilinx-dma.c +++ b/drivers/media/platform/xilinx/xilinx-dma.c @@ -187,7 +187,7 @@ static int xvip_pipeline_validate(struct xvip_pipeline *pipe, mutex_lock(&mdev->graph_mutex); /* Walk the graph to locate the video nodes. */ - 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;