]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7267): cx88: Fix: Loads tuner module before sending commands to it
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 19 Feb 2008 19:22:25 +0000 (16:22 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 20 Mar 2008 15:38:57 +0000 (12:38 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-cards.c
drivers/media/video/cx88/cx88-video.c

index e6b7f518c56e8f552ade9e463b4fb2093e8f6519..8c9a8adf52de2c2b5af95ed32d0805968857b20f 100644 (file)
@@ -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);
index 7f1931aed2070a926ac1502a30518cb72c0bb164..227179620d13cbe00695e5bbac05efe7a44f51fc 100644 (file)
@@ -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");