diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-05-11 19:51:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-05 06:35:40 -0300 |
commit | 4277106b4fb6edd8f52b0653841faebbf7160480 (patch) | |
tree | 5c6ffc539b2143ae61918c5178166035592040da /drivers/media/common/tuners/tea5761.c | |
parent | 81b8021a71c194752e8bbb29328cecc744a47b2b (diff) | |
download | lwn-4277106b4fb6edd8f52b0653841faebbf7160480.tar.gz lwn-4277106b4fb6edd8f52b0653841faebbf7160480.zip |
V4L/DVB (7902): fix handling of tea5761_autodetection return value
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 'drivers/media/common/tuners/tea5761.c')
-rw-r--r-- | drivers/media/common/tuners/tea5761.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tea5761.c b/drivers/media/common/tuners/tea5761.c index b93cdef9ac73..b23dadeecd05 100644 --- a/drivers/media/common/tuners/tea5761.c +++ b/drivers/media/common/tuners/tea5761.c @@ -295,7 +295,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); |