aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/mantis/mantis_i2c.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/dvb/mantis/mantis_i2c.c b/drivers/media/dvb/mantis/mantis_i2c.c
index 758f32a63b2f..9d2b51d2e4b6 100644
--- a/drivers/media/dvb/mantis/mantis_i2c.c
+++ b/drivers/media/dvb/mantis/mantis_i2c.c
@@ -58,7 +58,6 @@ static int mantis_i2c_read(struct mantis_pci *mantis, const struct i2c_msg *msg)
58 58
59 /* wait for xfer completion */ 59 /* wait for xfer completion */
60 for (trials = 0; trials < TRIALS; trials++) { 60 for (trials = 0; trials < TRIALS; trials++) {
61 msleep(1);
62 stat = mmread(MANTIS_INT_STAT); 61 stat = mmread(MANTIS_INT_STAT);
63 if (stat & MANTIS_INT_I2CDONE) 62 if (stat & MANTIS_INT_I2CDONE)
64 break; 63 break;
@@ -71,7 +70,6 @@ static int mantis_i2c_read(struct mantis_pci *mantis, const struct i2c_msg *msg)
71 stat = mmread(MANTIS_INT_STAT); 70 stat = mmread(MANTIS_INT_STAT);
72 if (stat & MANTIS_INT_I2CRACK) 71 if (stat & MANTIS_INT_I2CRACK)
73 break; 72 break;
74 msleep(1);
75 } 73 }
76 74
77 dprintk(MANTIS_TMG, 0, "I2CRACK: trials=%d\n", trials); 75 dprintk(MANTIS_TMG, 0, "I2CRACK: trials=%d\n", trials);
@@ -108,7 +106,6 @@ static int mantis_i2c_write(struct mantis_pci *mantis, const struct i2c_msg *msg
108 106
109 /* wait for xfer completion */ 107 /* wait for xfer completion */
110 for (trials = 0; trials < TRIALS; trials++) { 108 for (trials = 0; trials < TRIALS; trials++) {
111 msleep(1);
112 stat = mmread(MANTIS_INT_STAT); 109 stat = mmread(MANTIS_INT_STAT);
113 if (stat & MANTIS_INT_I2CDONE) 110 if (stat & MANTIS_INT_I2CDONE)
114 break; 111 break;
@@ -121,7 +118,6 @@ static int mantis_i2c_write(struct mantis_pci *mantis, const struct i2c_msg *msg
121 stat = mmread(MANTIS_INT_STAT); 118 stat = mmread(MANTIS_INT_STAT);
122 if (stat & MANTIS_INT_I2CRACK) 119 if (stat & MANTIS_INT_I2CRACK)
123 break; 120 break;
124 msleep(1);
125 } 121 }
126 122
127 dprintk(MANTIS_TMG, 0, "I2CRACK: trials=%d\n", trials); 123 dprintk(MANTIS_TMG, 0, "I2CRACK: trials=%d\n", trials);
@@ -164,7 +160,6 @@ static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, in
164 mmwrite(txd, MANTIS_I2CDATA_CTL); 160 mmwrite(txd, MANTIS_I2CDATA_CTL);
165 /* wait for xfer completion */ 161 /* wait for xfer completion */
166 for (trials = 0; trials < TRIALS; trials++) { 162 for (trials = 0; trials < TRIALS; trials++) {
167 msleep(1);
168 stat = mmread(MANTIS_INT_STAT); 163 stat = mmread(MANTIS_INT_STAT);
169 if (stat & MANTIS_INT_I2CDONE) 164 if (stat & MANTIS_INT_I2CDONE)
170 break; 165 break;