diff options
author | Sakari Ailus <[email protected]> | 2017-09-01 19:42:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2017-10-31 13:49:47 -0400 |
commit | eae4cf8f262e35b60928058e36ce1e841a2ab917 (patch) | |
tree | 4402b901fa88c5d389dc1db30cb7447758675c6b | |
parent | 85999e8ec0ee7cf1039152b34a3fc3d91e7e27c3 (diff) |
media: omap3isp: Fix check for our own sub-devices
We only want to link sub-devices that were bound to the async notifier the
isp driver registered but there may be other sub-devices in the
v4l2_device as well. Check for the correct async notifier.
Signed-off-by: Sakari Ailus <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/platform/omap3isp/isp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 97a5206b6ddc..4afd7ba4fad6 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -2155,7 +2155,7 @@ static int isp_subdev_notifier_complete(struct v4l2_async_notifier *async) return ret; list_for_each_entry(sd, &v4l2_dev->subdevs, list) { - if (!sd->asd) + if (sd->notifier != &isp->notifier) continue; ret = isp_link_entity(isp, &sd->entity, |