diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 5b7c9a948a0a..f2a4900014bc 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c | |||
@@ -229,14 +229,16 @@ void cx231xx_pre_card_setup(struct cx231xx *dev) | |||
229 | dev->board.name, dev->model); | 229 | dev->board.name, dev->model); |
230 | 230 | ||
231 | /* set the direction for GPIO pins */ | 231 | /* set the direction for GPIO pins */ |
232 | cx231xx_set_gpio_direction(dev, dev->board.tuner_gpio->bit, 1); | 232 | if (dev->board.tuner_gpio) { |
233 | cx231xx_set_gpio_value(dev, dev->board.tuner_gpio->bit, 1); | 233 | cx231xx_set_gpio_direction(dev, dev->board.tuner_gpio->bit, 1); |
234 | cx231xx_set_gpio_direction(dev, dev->board.tuner_sif_gpio, 1); | 234 | cx231xx_set_gpio_value(dev, dev->board.tuner_gpio->bit, 1); |
235 | cx231xx_set_gpio_direction(dev, dev->board.tuner_sif_gpio, 1); | ||
235 | 236 | ||
236 | /* request some modules if any required */ | 237 | /* request some modules if any required */ |
237 | 238 | ||
238 | /* reset the Tuner */ | 239 | /* reset the Tuner */ |
239 | cx231xx_gpio_set(dev, dev->board.tuner_gpio); | 240 | cx231xx_gpio_set(dev, dev->board.tuner_gpio); |
241 | } | ||
240 | 242 | ||
241 | /* set the mode to Analog mode initially */ | 243 | /* set the mode to Analog mode initially */ |
242 | cx231xx_set_mode(dev, CX231XX_ANALOG_MODE); | 244 | cx231xx_set_mode(dev, CX231XX_ANALOG_MODE); |