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

[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: 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
79ac44c8 aa79a84f

+1 -1
+1 -1
drivers/media/platform/omap3isp/ispvideo.c
··· 232 232 int ret; 233 233 234 234 mutex_lock(&mdev->graph_mutex); 235 - ret = media_graph_walk_init(&graph, entity->graph_obj.mdev); 235 + ret = media_graph_walk_init(&graph, mdev); 236 236 if (ret) { 237 237 mutex_unlock(&mdev->graph_mutex); 238 238 return ret;