Skip to content

Commit

Permalink
V4L/DVB (13791): [TDA10021] Do not claim TDA10023
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Edmundsson <nikke@acc.umu.se>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Niklas Edmundsson authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent 42f541b commit 4af699c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/dvb/frontends/tda10021.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config,
id = tda10021_readreg(state, 0x1a);
if ((id & 0xf0) != 0x70) goto error;

/* Don't claim TDA10023 */
if (id == 0x7d)
goto error;

printk("TDA10021: i2c-addr = 0x%02x, id = 0x%02x\n",
state->config->demod_address, id);

Expand Down

0 comments on commit 4af699c

Please sign in to comment.