]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] tuner-xc2028: use request_firmware_nowait()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 30 Jun 2012 12:08:54 +0000 (09:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 30 Jun 2012 17:26:06 +0000 (14:26 -0300)
commit61a96113de51e1f8f43ac98cbeadb54e60045905
tree16eb4f6fbf3d2d65074d08d71d9d22e90e57a826
parent704a28e88ab6c9cfe393ae626b612cab8b46028e
[media] tuner-xc2028: use request_firmware_nowait()

Change the firmware logic to use request_firmware_nowait(), and
to preserve the loaded firmwares in memory, to reduce the risk
of troubles with buggy userspace apps.

With this change, while the firmware is being loaded, the driver
will return -EAGAIN to any calls. If, for some reason, firmware
failed to be loaded from userspace, it will return -ENODEV.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c