mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 23:23:18 +00:00
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>
This commit is contained in:
parent
81b8021a71
commit
4277106b4f
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
|
||||||
{
|
{
|
||||||
struct tea5761_priv *priv = NULL;
|
struct tea5761_priv *priv = NULL;
|
||||||
|
|
||||||
if (tea5761_autodetection(i2c_adap, i2c_addr) == EINVAL)
|
if (tea5761_autodetection(i2c_adap, i2c_addr) != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
priv = kzalloc(sizeof(struct tea5761_priv), GFP_KERNEL);
|
priv = kzalloc(sizeof(struct tea5761_priv), GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue