diff options
Diffstat (limited to 'drivers/media/video/mt20xx.c')
-rw-r--r-- | drivers/media/video/mt20xx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/mt20xx.c b/drivers/media/video/mt20xx.c index d7e68a639cd8..5b33be8a49cd 100644 --- a/drivers/media/video/mt20xx.c +++ b/drivers/media/video/mt20xx.c | |||
@@ -495,6 +495,14 @@ static int mt2050_init(struct i2c_client *c) | |||
495 | return 0; | 495 | return 0; |
496 | } | 496 | } |
497 | 497 | ||
498 | static void microtune_release(struct i2c_client *c) | ||
499 | { | ||
500 | struct tuner *t = i2c_get_clientdata(c); | ||
501 | |||
502 | kfree(t->priv); | ||
503 | t->priv = NULL; | ||
504 | } | ||
505 | |||
498 | int microtune_init(struct i2c_client *c) | 506 | int microtune_init(struct i2c_client *c) |
499 | { | 507 | { |
500 | struct microtune_priv *priv = NULL; | 508 | struct microtune_priv *priv = NULL; |
@@ -514,6 +522,7 @@ int microtune_init(struct i2c_client *c) | |||
514 | t->set_tv_freq = NULL; | 522 | t->set_tv_freq = NULL; |
515 | t->set_radio_freq = NULL; | 523 | t->set_radio_freq = NULL; |
516 | t->standby = NULL; | 524 | t->standby = NULL; |
525 | t->release = microtune_release; | ||
517 | if (t->std & V4L2_STD_525_60) { | 526 | if (t->std & V4L2_STD_525_60) { |
518 | tuner_dbg("pinnacle ntsc\n"); | 527 | tuner_dbg("pinnacle ntsc\n"); |
519 | priv->radio_if2 = 41300 * 1000; | 528 | priv->radio_if2 = 41300 * 1000; |