Skip to content

Commit

Permalink
V4L/DVB (7267): cx88: Fix: Loads tuner module before sending commands…
Browse files Browse the repository at this point in the history
… to it

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 20, 2008
1 parent 2db2da9 commit 189bf5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions drivers/media/video/cx88/cx88-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,11 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
cx88_reset(core);
cx88_card_setup_pre_i2c(core);
cx88_i2c_init(core, pci);

/* load tuner module, if needed */
if (TUNER_ABSENT != core->board.tuner_type)
request_module("tuner");

cx88_call_i2c_clients (core, TUNER_SET_STANDBY, NULL);
cx88_card_setup(core);
cx88_ir_init(core, pci);
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,8 +1826,6 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
cx_set(MO_PCI_INTMSK, core->pci_irqmask);

/* load and configure helper modules */
if (TUNER_ABSENT != core->board.tuner_type)
request_module("tuner");

if (core->board.audio_chip == AUDIO_CHIP_WM8775)
request_module("wm8775");
Expand Down

0 comments on commit 189bf5f

Please sign in to comment.