Skip to content

Commit

Permalink
[media] tuner-core: fix tuner_resume: use t->mode instead of t->type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 7, 2011
1 parent 4e4a31f commit 9bf0ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bf0ef0

Please sign in to comment.