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>
Tue, 18 Nov 2014 03:00:21 +0000 (12:00 +0900)
commita704f09429ddd4075dc43b83aa604bcef14b693c
treec54bcdcaab3c3dabaf91d0bc0a2a8ad4bb3eea23
parent00bef143c5d0d8c9567a1cbb3bf090c4c263a713
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