summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/tuners/tea5761.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-11 19:51:07 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-11 19:51:07 +0000
commit428a966f445b92d487c999aa2bd4e1f1c558ad7a (patch)
tree80fecebf039a5bad0df7318553ffd3fefd052509 /linux/drivers/media/common/tuners/tea5761.c
parente8af083c78cec1b0711b71093bf7a2837e7113f9 (diff)
downloadmediapointer-dvb-s2-428a966f445b92d487c999aa2bd4e1f1c558ad7a.tar.gz
mediapointer-dvb-s2-428a966f445b92d487c999aa2bd4e1f1c558ad7a.tar.bz2
fix handling of tea5761_autodetection return value
From: Marcin Slusarz <marcin.slusarz@gmail.com> tea5761_autodetection returns -EINVAL on error Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/common/tuners/tea5761.c')
-rw-r--r--linux/drivers/media/common/tuners/tea5761.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tea5761.c b/linux/drivers/media/common/tuners/tea5761.c
index 11e2991ef..f5fadcd4b 100644
--- a/linux/drivers/media/common/tuners/tea5761.c
+++ b/linux/drivers/media/common/tuners/tea5761.c
@@ -301,7 +301,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
{
struct tea5761_priv *priv = NULL;
- if (tea5761_autodetection(i2c_adap, i2c_addr) == EINVAL)
+ if (tea5761_autodetection(i2c_adap, i2c_addr) != 0)
return NULL;
priv = kzalloc(sizeof(struct tea5761_priv), GFP_KERNEL);