diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-22 17:15:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:01:11 -0500 |
commit | 4524c1aba5449d3519d1545f8106811eb73fc72c (patch) | |
tree | 9740467620d93b5fd488f246637c6a4fc588a0d6 | |
parent | af3b0f3f01d299c46837a408e1b9510b8c304e43 (diff) |
V4L/DVB (6445): tuner-core: improve comments inside function fe_release()
Explain who is responsible for freeing analog_demod_priv
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/tuner-core.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 1e9c9755dec2..88db8b33c864 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -103,7 +103,15 @@ static void fe_release(struct dvb_frontend *fe) | |||
103 | fe->ops.tuner_ops.release(fe); | 103 | fe->ops.tuner_ops.release(fe); |
104 | 104 | ||
105 | fe->ops.analog_demod_ops = NULL; | 105 | fe->ops.analog_demod_ops = NULL; |
106 | /* DO NOT kfree(t->fe.analog_demod_priv) */ | 106 | |
107 | /* DO NOT kfree(fe->analog_demod_priv) | ||
108 | * | ||
109 | * If we are in this function, analog_demod_priv contains a pointer | ||
110 | * to struct tuner *t. This will be kfree'd in tuner_detach(). | ||
111 | * | ||
112 | * Otherwise, fe->ops.analog_demod_ops->release will | ||
113 | * handle the cleanup for analog demodulator modules. | ||
114 | */ | ||
107 | fe->analog_demod_priv = NULL; | 115 | fe->analog_demod_priv = NULL; |
108 | } | 116 | } |
109 | 117 | ||