Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
2312d8b8 79ac44c8

+1 -1
+1 -1
drivers/media/platform/xilinx/xilinx-dma.c
··· 187 187 mutex_lock(&mdev->graph_mutex); 188 188 189 189 /* Walk the graph to locate the video nodes. */ 190 - ret = media_graph_walk_init(&graph, entity->graph_obj.mdev); 190 + ret = media_graph_walk_init(&graph, mdev); 191 191 if (ret) { 192 192 mutex_unlock(&mdev->graph_mutex); 193 193 return ret;