]> Git Repo - linux.git/blobdiff - drivers/i2c/algos/i2c-algo-bit.c
i2c-algo-bit: Discard the mdelay data struct member
[linux.git] / drivers / i2c / algos / i2c-algo-bit.c
index df05df1a0ef61f20de8239e36bb3202ac7ae6ae5..761df16838b480b8d0fbbed73a2ac09f7f4226a6 100644 (file)
@@ -354,10 +354,6 @@ static int sendbytes(struct i2c_adapter *i2c_adap, struct i2c_msg *msg)
                        return (retval<0)? retval : -EFAULT;
                                /* got a better one ?? */
                }
-#if 0
-               /* from asm/delay.h */
-               __delay(adap->mdelay * (loops_per_sec / 1000) );
-#endif
        }
        return wrcount;
 }
@@ -372,7 +368,6 @@ static inline int readbytes(struct i2c_adapter *i2c_adap, struct i2c_msg *msg)
 
        while (count > 0) {
                inval = i2c_inb(i2c_adap);
-/*printk("%#02x ",inval); if ( ! (count % 16) ) printk("\n"); */
                if (inval>=0) {
                        *temp = inval;
                        rdcount++;
@@ -544,8 +539,7 @@ int i2c_bit_add_bus(struct i2c_adapter *adap)
        adap->timeout = 100;    /* default values, should       */
        adap->retries = 3;      /* be replaced by defines       */
 
-       i2c_add_adapter(adap);
-       return 0;
+       return i2c_add_adapter(adap);
 }
 
 
This page took 0.032852 seconds and 4 git commands to generate.