[media] omap3isp: Use a local media device pointer instead
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 28 Nov 2016 10:42:44 +0000 (08:42 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 13:34:38 +0000 (11:34 -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/omap3isp/ispvideo.c

index 5b0d16e10aa573ab792cc6a0ba4e18a7005262bd..25a8210f0a6d5c9de9eb958f8d8a613b80e53a38 100644 (file)
@@ -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;