]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/cpu/mpc8220/i2c.c
doc/README.scrapyard: add missing commit IDs
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc8220 / i2c.c
index 76ecdf11e214e3e539c67535f140cffec33c3c5d..2f35d20c87e1929017adf1229fdcd9706f70e597 100644 (file)
@@ -105,15 +105,13 @@ static int wait_for_bb (void)
        status = mpc_reg_in (&regs->sr);
 
        while (timeout-- && (status & I2C_BB)) {
-#if 1
-               volatile int temp;
 
                mpc_reg_out (&regs->cr, I2C_STA, I2C_STA);
-               temp = mpc_reg_in (&regs->dr);
+               (void)mpc_reg_in (&regs->dr);
                mpc_reg_out (&regs->cr, 0, I2C_STA);
                mpc_reg_out (&regs->cr, 0, 0);
                mpc_reg_out (&regs->cr, I2C_EN, 0);
-#endif
+
                udelay (1000);
                status = mpc_reg_in (&regs->sr);
        }