From: Hans Verkuil Date: Mon, 13 Jun 2011 12:21:56 +0000 (-0300) Subject: [media] tuner-core: fix tuner_resume: use t->mode instead of t->type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bf0ef060ebae452c07cf5b0616247780740bb50;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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) 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;