[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 18:52:54 +0000 (15:52 -0300)
commit2621c0b3224633393ef9e24c3ac9de2770b3750c
treeb7254b22ec1127581b7bc3e6f0e68ef8b617f801
parent2fcfd317f66c6e6cf0e05351e7641898d767dfa4
[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.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/xc5000.c