diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2015-10-22 04:56:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-17 11:33:41 -0500 |
commit | ba463988a00520d0019cfc70f42ecfe122e9fefd (patch) | |
tree | a648fd48f1e430e3af50e33d984167d12bd34dea | |
parent | f18e16239f6bfcecf475aba0967a2cf039f6b5fe (diff) |
[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>
-rw-r--r-- | drivers/media/usb/go7007/go7007-usb.c | 2 |
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, | |||
1289 | 1289 | ||
1290 | /* Allocate the URBs and buffers for receiving the audio stream */ | 1290 | /* Allocate the URBs and buffers for receiving the audio stream */ |
1291 | if ((board->flags & GO7007_USB_EZUSB) && | 1291 | if ((board->flags & GO7007_USB_EZUSB) && |
1292 | (board->flags & GO7007_BOARD_HAS_AUDIO)) { | 1292 | (board->main_info.flags & GO7007_BOARD_HAS_AUDIO)) { |
1293 | for (i = 0; i < 8; ++i) { | 1293 | for (i = 0; i < 8; ++i) { |
1294 | usb->audio_urbs[i] = usb_alloc_urb(0, GFP_KERNEL); | 1294 | usb->audio_urbs[i] = usb_alloc_urb(0, GFP_KERNEL); |
1295 | if (usb->audio_urbs[i] == NULL) | 1295 | if (usb->audio_urbs[i] == NULL) |