Skip to content

Commit

Permalink
V4L/DVB (7902): fix handling of tea5761_autodetection return value
Browse files Browse the repository at this point in the history
tea5761_autodetection returns -EINVAL on error

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Marcin Slusarz authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 81b8021 commit 4277106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/common/tuners/tea5761.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4277106

Please sign in to comment.