V4L/DVB (6953): Fix radio set frequency logic
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 5 Jan 2008 19:37:04 +0000 (16:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:33 +0000 (19:04 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c

index 67b9ed1..35976e6 100644 (file)
@@ -247,7 +247,7 @@ static void set_radio_freq(struct i2c_client *c, unsigned int freq)
                tuner_warn ("tuner type not set\n");
                return;
        }
-       if (analog_ops->set_params) {
+       if (NULL == analog_ops->set_params) {
                tuner_warn ("tuner has no way to set radio frequency\n");
                return;
        }