aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_vp3030.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_vp3030.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_vp3030.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/drivers/media/dvb/mantis/mantis_vp3030.c b/drivers/media/dvb/mantis/mantis_vp3030.c
index 9efcfa7b8ab4..a44fac3aabc6 100644
--- a/drivers/media/dvb/mantis/mantis_vp3030.c
+++ b/drivers/media/dvb/mantis/mantis_vp3030.c
@@ -66,13 +66,23 @@ static int vp3030_frontend_init(struct mantis_pci *mantis, struct dvb_frontend *
66 msleep(100); 66 msleep(100);
67 gpio_set_bits(mantis, config->reset, 1); 67 gpio_set_bits(mantis, config->reset, 1);
68 68
69 dprintk(MANTIS_ERROR, 1, "Probing for 10353 (DVB-T)"); 69 if (err == 0) {
70 fe = zl10353_attach(&mantis_vp3030_config, adapter); 70 msleep(250);
71 dprintk(MANTIS_ERROR, 1, "Probing for 10353 (DVB-T)");
72 fe = zl10353_attach(&mantis_vp3030_config, adapter);
71 73
72 if (!fe) 74 if (!fe)
73 return -1; 75 return -1;
74 76
75 tda665x_attach(fe, &env57h12d5_config, adapter); 77 tda665x_attach(fe, &env57h12d5_config, adapter);
78 } else {
79 dprintk(MANTIS_ERROR, 1, "Frontend on <%s> POWER ON failed! <%d>",
80 adapter->name,
81 err);
82
83 return -EIO;
84
85 }
76 mantis->fe = fe; 86 mantis->fe = fe;
77 dprintk(MANTIS_ERROR, 1, "Done!"); 87 dprintk(MANTIS_ERROR, 1, "Done!");
78 88
@@ -91,4 +101,6 @@ struct mantis_hwconfig vp3030_config = {
91 .frontend_init = vp3030_frontend_init, 101 .frontend_init = vp3030_frontend_init,
92 .power = GPIF_A12, 102 .power = GPIF_A12,
93 .reset = GPIF_A13, 103 .reset = GPIF_A13,
104
105 .i2c_mode = MANTIS_BYTE_MODE
94}; 106};