diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-04-22 17:41:50 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 16:42:23 (GMT) |
commit | 65e8d29f7a37faaf9c73c633447bebd4b31b2c89 (patch) | |
tree | 9e4d72f4a6710d3435ae51499d74cdf2c7a8f916 /drivers/media/video/tuner-core.c | |
parent | 82b3083d2673e5fe8ac508071038b2b4c10bbf9c (diff) | |
download | linux-fsl-qoriq-65e8d29f7a37faaf9c73c633447bebd4b31b2c89.tar.xz |
V4L/DVB (7126): tuner: move tuner type ID check to simple_tuner_attach
Move tuner type ID check from tuner-core::set_type to simple_tuner_attach.
Since tuner-core forwards all attach requests to tuner-simple as the
default case, unless a specific attach function is specified in
set_type, this change is an appropriate cleanup.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r-- | drivers/media/video/tuner-core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 770dbcb..4d79176 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -352,11 +352,6 @@ static void set_type(struct i2c_client *c, unsigned int type, return; } - if (type >= tuner_count) { - tuner_warn ("tuner 0x%02x: Tuner count greater than %d\n",c->addr,tuner_count); - return; - } - t->type = type; t->config = new_config; if (tuner_callback != NULL) { |