summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@linuxtv.org>2011-08-24 19:33:52 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-04 15:56:08 +0200
commit42f4e774a30d0e9894741b62af4174c73ecc53da (patch)
tree5c3d5ae71c123611bbca6adec00e9390b45f091e
parent[media] t613: Use current logging styles (diff)
downloadlinux-42f4e774a30d0e9894741b62af4174c73ecc53da.tar.xz
linux-42f4e774a30d0e9894741b62af4174c73ecc53da.zip
[media] DVB: dvb_frontend: check function pointers on reinitialize
Signed-off-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c6
1 files changed, 2 insertions, 4 deletions
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;
}