From: Michael Krufky Date: Mon, 24 Dec 2007 19:05:39 +0000 (-0300) Subject: V4L/DVB (6920): tuner: fix backwards logic in check for set_config X-Git-Tag: v2.6.25-rc1~1235^2~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=67d52e29032dd2f21d4080331f47a21205f337f6;p=karo-tx-linux.git V4L/DVB (6920): tuner: fix backwards logic in check for set_config tuner-core was checking if analog_ops->set_config is set. If set, it would complain that it isn't. Fix this backwards logic to the proper behavior. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index f792871582ff..67b9ed1ac71a 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -855,12 +855,11 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg) break; if (analog_ops->set_config) { - tuner_warn("Tuner frontend module has no way to " - "set config\n"); + analog_ops->set_config(&t->fe, cfg->priv); break; } - analog_ops->set_config(&t->fe, cfg->priv); + tuner_dbg("Tuner frontend module has no way to set config\n"); break; } /* --- v4l ioctls --- */