[media] tda18271: properly report read errors in tda18271_get_id
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 2 Oct 2012 14:04:36 +0000 (11:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Oct 2012 18:17:46 +0000 (15:17 -0300)
commit351d18786e1fa45d1cd20bad03e445dbb50e0912
tree34596aefad02702460df4271edebe73eee79bc94
parent6b82e0cfc15ec7e635eea83b04e1544ab64f81ad
[media] tda18271: properly report read errors in tda18271_get_id

Until now, if there is a read error in tda18271_get_id, the driver
reports "Unknown device..."  Instead, check the return value of
tda18271_read_regs and display the appropriate error message.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/tda18271-fe.c