[media] cypress_firmware: refactor firmware downloading
authorAntti Palosaari <crope@iki.fi>
Fri, 21 Sep 2012 22:44:51 +0000 (19:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 18:14:20 +0000 (15:14 -0300)
commit2347e6836ad2a5a2f7e62bd12b8f52fe15f04f74
tree2f18184689507c53a7de7870083bf923a2d61281
parentd6f35c7128201b78fe2cb2c1eca3a5c67929566c
[media] cypress_firmware: refactor firmware downloading

Refactor firmware download function. It also should fix one bug
coming from usb_control_msg() message buffers. Taking buffers from
the stack for usb_control_msg() is not allowed as it does not work
on all architectures. Allocate buffers using kmalloc().

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/cypress_firmware.c