[media] xc5000: optimize firmware retry logic
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 14:09:15 +0000 (11:09 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 18:55:26 +0000 (15:55 -0300)
commit8604f3552b1c995186acc8306acf25ee73fd9d5e
tree30eef24b2a58be9ebc3f530080cd4c1f20017706
parent2621c0b3224633393ef9e24c3ac9de2770b3750c
[media] xc5000: optimize firmware retry logic

Currently, firmware retry logic keeps reading from FS every
time during the retry logic. This is not needed. Instead,
only release the firmware read after success.

While here, make the non-debug messages less verbose, as it
only matters to the user if the firmware was successfully
loaded, or if some error happened.

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