upstream: [media] xc5000: Don't try forever to load the firmware
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 13:36:32 +0000 (10:36 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:17:57 +0000 (15:17 +0900)
commit8e756200634e9cf8fd4481e967cdfb7f10dfb84a
tree6686ef871e7eddf84e62218af5ecd81649657b7b
parent7dcb34e8e6c213673e1b8c28cbde0b28caa9d812
upstream: [media] xc5000: Don't try forever to load the firmware

With the current code, if something bad happens during the
firmware init process, the device will keep trying forever,
and removing it would cause an OOPS.

Instead, try only a limited amount of time. If not, fails.

Backports http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=2621c0b32246
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/xc5000.c