]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6445): tuner-core: improve comments inside function fe_release()
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 22 Oct 2007 21:15:39 +0000 (18:15 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:11 +0000 (19:01 -0200)
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>
drivers/media/video/tuner-core.c

index 1e9c9755dec25f8d06dfa05789c8d75abe175a15..88db8b33c864d6d7ca791992fb4dd390bec69ec1 100644 (file)
@@ -103,7 +103,15 @@ static void fe_release(struct dvb_frontend *fe)
                fe->ops.tuner_ops.release(fe);
 
        fe->ops.analog_demod_ops = NULL;
-       /* DO NOT kfree(t->fe.analog_demod_priv) */
+
+       /* DO NOT kfree(fe->analog_demod_priv)
+        *
+        * If we are in this function, analog_demod_priv contains a pointer
+        * to struct tuner *t.  This will be kfree'd in tuner_detach().
+        *
+        * Otherwise, fe->ops.analog_demod_ops->release will
+        * handle the cleanup for analog demodulator modules.
+        */
        fe->analog_demod_priv = NULL;
 }