[PATCH 05/22] [media] v4l2-async: add new subdevices to the tail of subdev_list

Philipp Zabel
2016-10-07T16:01:16Z

That way the asynchronous notifier will pick them up in the order they
were registered.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
drivers/media/v4l2-core/v4l2-async.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c
index 404eeea..1a62ed7 100644
--- a/drivers/media/v4l2-core/v4l2-async.c
+++ b/drivers/media/v4l2-core/v4l2-async.c
@@ -371,7 +371,7 @@ int v4l2_async_register_subdev(struct v4l2_subdev *sd)
}

/* None matched, wait for hot-plugging */
- list_add(&sd->async_list, &subdev_list);
+ list_add_tail(&sd->async_list, &subdev_list);

mutex_unlock(&list_lock);

--
2.9.3