]> git.baikalelectronics.ru Git - kernel.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)
commitf526b1c7fbf6d951d66de43918a5a611b4fc2476
tree16eb4f6fbf3d2d65074d08d71d9d22e90e57a826
parent187eaf808dc01328736d0ee23ee86aa0299c7772
[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