diff options
author | Andreas Oberritter <obi@linuxtv.org> | 2011-08-24 13:33:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-04 09:56:08 -0400 |
commit | 42f4e774a30d0e9894741b62af4174c73ecc53da (patch) | |
tree | 5c3d5ae71c123611bbca6adec00e9390b45f091e /drivers | |
parent | 1b19e42952963ae2a09a655f487de15b7c81c5b7 (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 6 |
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: | |||
577 | 577 | ||
578 | if (fepriv->reinitialise) { | 578 | if (fepriv->reinitialise) { |
579 | dvb_frontend_init(fe); | 579 | dvb_frontend_init(fe); |
580 | if (fepriv->tone != -1) { | 580 | if (fe->ops.set_tone && fepriv->tone != -1) |
581 | fe->ops.set_tone(fe, fepriv->tone); | 581 | fe->ops.set_tone(fe, fepriv->tone); |
582 | } | 582 | if (fe->ops.set_voltage && fepriv->voltage != -1) |
583 | if (fepriv->voltage != -1) { | ||
584 | fe->ops.set_voltage(fe, fepriv->voltage); | 583 | fe->ops.set_voltage(fe, fepriv->voltage); |
585 | } | ||
586 | fepriv->reinitialise = 0; | 584 | fepriv->reinitialise = 0; |
587 | } | 585 | } |
588 | 586 | ||