aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2011-06-13 08:21:56 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-07 14:00:57 -0400
commit9bf0ef060ebae452c07cf5b0616247780740bb50 (patch)
tree4de9e27dfcb98fa5d1e29ad1d97516f0d3b1b299 /drivers/media
parent4e4a31fb95d88518180517bae3098a23ebde9f9c (diff)
[media] tuner-core: fix tuner_resume: use t->mode instead of t->type
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). Cc: stable@kernel.org Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tuner-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 48797045321b..1843fc293322 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)
1223 tuner_dbg("resume\n"); 1223 tuner_dbg("resume\n");
1224 1224
1225 if (!t->standby) 1225 if (!t->standby)
1226 if (set_mode(t, t->type) == 0) 1226 if (set_mode(t, t->mode) == 0)
1227 set_freq(t, 0); 1227 set_freq(t, 0);
1228 1228
1229 return 0; 1229 return 0;