aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/go7007/go7007-usb.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2015-10-22 06:56:21 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 14:33:41 -0200
commitba463988a00520d0019cfc70f42ecfe122e9fefd (patch)
treea648fd48f1e430e3af50e33d984167d12bd34dea /drivers/media/usb/go7007/go7007-usb.c
parent[media] DocBook media: s/input stream/capture stream/ (diff)
downloadlinux-dev-ba463988a00520d0019cfc70f42ecfe122e9fefd.tar.xz
linux-dev-ba463988a00520d0019cfc70f42ecfe122e9fefd.zip
[media] go7007: fix broken test
The wrong flags field was tested for the GO7007_BOARD_HAS_AUDIO flag: that flag is in board->main_info.flags, not in board->flags. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/go7007/go7007-usb.c')
-rw-r--r--drivers/media/usb/go7007/go7007-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/go7007/go7007-usb.c b/drivers/media/usb/go7007/go7007-usb.c
index 564eabe82923..3dbf14c85c5c 100644
--- a/drivers/media/usb/go7007/go7007-usb.c
+++ b/drivers/media/usb/go7007/go7007-usb.c
@@ -1289,7 +1289,7 @@ static int go7007_usb_probe(struct usb_interface *intf,
/* Allocate the URBs and buffers for receiving the audio stream */
if ((board->flags & GO7007_USB_EZUSB) &&
- (board->flags & GO7007_BOARD_HAS_AUDIO)) {
+ (board->main_info.flags & GO7007_BOARD_HAS_AUDIO)) {
for (i = 0; i < 8; ++i) {
usb->audio_urbs[i] = usb_alloc_urb(0, GFP_KERNEL);
if (usb->audio_urbs[i] == NULL)