Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61310
b: refs/heads/master
c: 024cf53
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent 6ca4c69 commit 0894e73
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be2b85a13543bbaf1a141b3a54f84c1e3b059e69
refs/heads/master: 024cf53089f7c8e58934407f07ca2a7b5bed3b06
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/mt20xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ static int mt2050_init(struct i2c_client *c)
return 0;
}

static void microtune_release(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);

kfree(t->priv);
t->priv = NULL;
}

int microtune_init(struct i2c_client *c)
{
struct microtune_priv *priv = NULL;
Expand All @@ -514,6 +522,7 @@ int microtune_init(struct i2c_client *c)
t->set_tv_freq = NULL;
t->set_radio_freq = NULL;
t->standby = NULL;
t->release = microtune_release;
if (t->std & V4L2_STD_525_60) {
tuner_dbg("pinnacle ntsc\n");
priv->radio_if2 = 41300 * 1000;
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,14 @@ static void tda8290_init_tuner(struct i2c_client *c)

/*---------------------------------------------------------------------*/

static void tda8290_release(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);

kfree(t->priv);
t->priv = NULL;
}

int tda8290_init(struct i2c_client *c)
{
struct tda8290_priv *priv = NULL;
Expand Down Expand Up @@ -663,6 +671,7 @@ int tda8290_init(struct i2c_client *c)
t->set_radio_freq = set_radio_freq;
t->has_signal = has_signal;
t->standby = standby;
t->release = tda8290_release;
priv->tda827x_lpsel = 0;
t->mode = V4L2_TUNER_ANALOG_TV;

Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/tda9887.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,14 @@ static void tda9887_set_freq(struct i2c_client *client, unsigned int freq)
tda9887_configure(client);
}

static void tda9887_release(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);

kfree(t->priv);
t->priv = NULL;
}

int tda9887_tuner_init(struct i2c_client *c)
{
struct tda9887_priv *priv = NULL;
Expand All @@ -611,6 +619,7 @@ int tda9887_tuner_init(struct i2c_client *c)
t->standby = tda9887_standby;
t->tuner_status = tda9887_tuner_status;
t->get_afc = tda9887_get_afc;
t->release = tda9887_release;

return 0;
}
Expand Down

0 comments on commit 0894e73

Please sign in to comment.