diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-10 12:55:54 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-14 17:52:29 +0200 |
commit | b430eaba0be5eb7140d0065df96982fa6b5ccc1d (patch) | |
tree | e8d9041dc807713c09d74b53b1485ad1dab0eb55 /drivers/media/usb/b2c2/flexcop-usb.h | |
parent | [media] stk-webcam: don't use stack for DMA (diff) | |
download | linux-b430eaba0be5eb7140d0065df96982fa6b5ccc1d.tar.xz linux-b430eaba0be5eb7140d0065df96982fa6b5ccc1d.zip |
[media] flexcop-usb: don't use stack for DMA
The USB control messages require DMA to work. We cannot pass
a stack-allocated buffer, as it is not warranted that the
stack would be into a DMA enabled area.
While here, remove a dead function calling usb_control_msg().
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/b2c2/flexcop-usb.h')
-rw-r--r-- | drivers/media/usb/b2c2/flexcop-usb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/b2c2/flexcop-usb.h b/drivers/media/usb/b2c2/flexcop-usb.h index 92529a9c4475..25ad43166e78 100644 --- a/drivers/media/usb/b2c2/flexcop-usb.h +++ b/drivers/media/usb/b2c2/flexcop-usb.h @@ -29,6 +29,10 @@ struct flexcop_usb { u8 tmp_buffer[1023+190]; int tmp_buffer_length; + + /* for URB control messages */ + u8 data[80]; + struct mutex data_mutex; }; #if 0 |