]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] xilinx: Use a local media device pointer instead
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 28 Nov 2016 11:48:03 +0000 (09:48 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 13:35:02 +0000 (11:35 -0200)
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>
drivers/media/platform/xilinx/xilinx-dma.c

index 065df82a2cefb8263aaadda7b6cb7976b6f5ec14..522cdfdd334518fd578e8440d451d37a504afc7e 100644 (file)
@@ -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;