V4L/DVB (13790): [Mantis] Relocate queue initialization
authorManu Abraham <abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:35:07 +0000 (05:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:42 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_ca.c
drivers/media/dvb/mantis/mantis_hif.c

index 53c01b3..7aa27e0 100644 (file)
@@ -158,6 +158,10 @@ int mantis_ca_init(struct mantis_pci *mantis)
 
        mutex_init(&ca->ca_lock);
 
+       init_waitqueue_head(&ca->hif_data_wq);
+       init_waitqueue_head(&ca->hif_opdone_wq);
+       init_waitqueue_head(&ca->hif_write_wq);
+
        dprintk(verbose, MANTIS_ERROR, 1, "Registering EN50221 device");
        if ((result = dvb_ca_en50221_init(dvb_adapter, &ca->en50221, ca_flags, 1)) != 0) {
                dprintk(verbose, MANTIS_ERROR, 1, "EN50221: Initialization failed");
index b1e1aa0..99a9724 100644 (file)
@@ -209,9 +209,6 @@ int mantis_hif_init(struct mantis_ca *ca)
 
        slot[0].slave_cfg = 0x70773028;
        dprintk(verbose, MANTIS_ERROR, 1, "Adapter(%d) Initializing Mantis Host Interface", mantis->num);
-       init_waitqueue_head(&ca->hif_data_wq);
-       init_waitqueue_head(&ca->hif_opdone_wq);
-       init_waitqueue_head(&ca->hif_write_wq);
 
        mutex_lock(&ca->ca_lock);
        irqcfg = mmread(MANTIS_GPIF_IRQCFG);