From: Sylwester Nawrocki Date: Wed, 31 Jul 2013 16:10:18 +0000 (-0300) Subject: [media] v4l2-async: Use proper list head for iteration over registered subdevs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ceedcc4ede04e069c5201748a34b2bdc044d3824;p=openwrt%2Fstaging%2Fblogic.git [media] v4l2-async: Use proper list head for iteration over registered subdevs This fixes regression introduced in commit b426b3a660c85faf6e1ca1c92c6d [media] V4L: Merge struct v4l2_async_subdev_list with struct v4l2_subdev Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 10bb62cb8d7d..c85d69da35bd 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c @@ -199,7 +199,7 @@ void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier) list_del(¬ifier->list); - list_for_each_entry_safe(sd, tmp, ¬ifier->done, list) { + list_for_each_entry_safe(sd, tmp, ¬ifier->done, async_list) { dev[i] = get_device(sd->dev); v4l2_async_cleanup(sd);