diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-06-13 09:21:56 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-03 12:42:30 -0700 |
commit | 200b5a77bedf1e5569a0183e86b100f126ecf061 (patch) | |
tree | 254d1b97dafdefb438a4926b5ad43292031df2af | |
parent | f0c8bfe6f4a207816d0e0537b99d44924100dad5 (diff) |
tuner-core: fix tuner_resume: use t->mode instead of t->type
commit 9bf0ef060ebae452c07cf5b0616247780740bb50 upstream.
set_mode is called with t->type, which is the tuner type. Instead, use
t->mode which is the actual tuner mode (i.e. radio vs tv).
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/media/video/tuner-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 48797045321..1843fc29332 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -1223,7 +1223,7 @@ static int tuner_resume(struct i2c_client *c) tuner_dbg("resume\n"); if (!t->standby) - if (set_mode(t, t->type) == 0) + if (set_mode(t, t->mode) == 0) set_freq(t, 0); return 0; |