summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-simple.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 8f721130d..8a9d03567 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-simple.c,v 1.55 2005/10/27 04:33:27 mkrufky Exp $
+ * $Id: tuner-simple.c,v 1.56 2005/10/27 04:56:17 mkrufky Exp $
*
* i2c tv tuner chip device driver
* controls all those simple 4-control-bytes style tuners.
@@ -317,7 +317,7 @@ static int tuner_mode (struct i2c_client *c)
static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
{
struct tuner *t = i2c_get_clientdata(c);
- u8 config;
+ u8 config, tuneraddr;
u16 div;
struct tunertype *tun;
unsigned char buffer[4];
@@ -411,7 +411,6 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
buffer[1] = 0x04;
}
/* set to the correct mode (analog or digital) */
- u8 tuneraddr;
tuneraddr = c->addr;
c->addr = 0x0a;
if (2 != (rc = i2c_master_send(c,&buffer[0],2)))