summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvc_entity.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-10-20 15:30:55 +0200
committerArnd Bergmann <arnd@arndb.de>2011-10-20 15:30:55 +0200
commit29ea35969b92a4be122a58c4aceea8c5e2c388d9 (patch)
tree8285c0e98e7bb03868d390b58180e3cab876a8db /drivers/media/video/uvc/uvc_entity.c
parentMerge branches 'sirf/devel', 'at91/devel', 'imx/devel' and 'davinci/devel' in... (diff)
parentMerge branch 'imx-features-for-arnd' of git://git.pengutronix.de/git/imx/linu... (diff)
downloadlinux-29ea35969b92a4be122a58c4aceea8c5e2c388d9.tar.xz
linux-29ea35969b92a4be122a58c4aceea8c5e2c388d9.zip
Merge branch 'imx/devel' into next/devel
Diffstat (limited to 'drivers/media/video/uvc/uvc_entity.c')
-rw-r--r--drivers/media/video/uvc/uvc_entity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_entity.c b/drivers/media/video/uvc/uvc_entity.c
index 48fea373c25a..29e239911d0e 100644
--- a/drivers/media/video/uvc/uvc_entity.c
+++ b/drivers/media/video/uvc/uvc_entity.c
@@ -49,7 +49,7 @@ static int uvc_mc_register_entity(struct uvc_video_chain *chain,
if (remote == NULL)
return -EINVAL;
- source = (UVC_ENTITY_TYPE(remote) != UVC_TT_STREAMING)
+ source = (UVC_ENTITY_TYPE(remote) == UVC_TT_STREAMING)
? (remote->vdev ? &remote->vdev->entity : NULL)
: &remote->subdev.entity;
if (source == NULL)