[25/70] [media] tuner-core: fix tuner_resume: use t->mode instead of t->type

From: Greg KH
Date: Mon Aug 01 2011 - 19:36:27 EST


2.6.39-stable review patch. If anyone has any objections, please let us know.

------------------

From: Hans Verkuil <hans.verkuil@xxxxxxxxx>

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@xxxxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/media/video/tuner-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1223,7 +1223,7 @@ static int tuner_resume(struct i2c_clien
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;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/