diff options
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 4 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index e777ca636ecb..71a1aaaa982e 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -775,9 +775,9 @@ int em28xx_set_mode(struct em28xx *dev, enum em28xx_mode set_mode) | |||
775 | dev->mode = set_mode; | 775 | dev->mode = set_mode; |
776 | 776 | ||
777 | if (dev->mode == EM28XX_DIGITAL_MODE) | 777 | if (dev->mode == EM28XX_DIGITAL_MODE) |
778 | return em28xx_gpio_set(dev, dev->digital_gpio); | 778 | return em28xx_gpio_set(dev, dev->board.dvb_gpio); |
779 | else | 779 | else |
780 | return em28xx_gpio_set(dev, dev->analog_gpio); | 780 | return em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio); |
781 | } | 781 | } |
782 | EXPORT_SYMBOL_GPL(em28xx_set_mode); | 782 | EXPORT_SYMBOL_GPL(em28xx_set_mode); |
783 | 783 | ||
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index fdc225c617ef..b2b41b3635e2 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -431,9 +431,6 @@ struct em28xx { | |||
431 | /* Some older em28xx chips needs a waiting time after writing */ | 431 | /* Some older em28xx chips needs a waiting time after writing */ |
432 | unsigned int wait_after_write; | 432 | unsigned int wait_after_write; |
433 | 433 | ||
434 | /* GPIO sequences for analog and digital mode */ | ||
435 | struct em28xx_reg_seq *analog_gpio, *digital_gpio; | ||
436 | |||
437 | /* GPIO sequences for tuner callbacks */ | 434 | /* GPIO sequences for tuner callbacks */ |
438 | struct em28xx_reg_seq *tuner_gpio; | 435 | struct em28xx_reg_seq *tuner_gpio; |
439 | 436 | ||