From: Andreas Oberritter Date: Wed, 24 Aug 2011 17:33:52 +0000 (-0300) Subject: [media] DVB: dvb_frontend: check function pointers on reinitialize X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42f4e774a30d0e9894741b62af4174c73ecc53da;p=linux-beck.git [media] DVB: dvb_frontend: check function pointers on reinitialize Signed-off-by: Andreas Oberritter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index a716627ab32f..4b05931a098f 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -577,12 +577,10 @@ restart: if (fepriv->reinitialise) { dvb_frontend_init(fe); - if (fepriv->tone != -1) { + if (fe->ops.set_tone && fepriv->tone != -1) fe->ops.set_tone(fe, fepriv->tone); - } - if (fepriv->voltage != -1) { + if (fe->ops.set_voltage && fepriv->voltage != -1) fe->ops.set_voltage(fe, fepriv->voltage); - } fepriv->reinitialise = 0; }