projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918e346
)
mpc8220/i2c.c: Fix GCC 4.6 build warning
author
Wolfgang Denk
<wd@denx.de>
Fri, 4 Nov 2011 15:55:58 +0000
(15:55 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Mon, 7 Nov 2011 21:16:52 +0000
(22:16 +0100)
Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:109:16: warning: variable 'temp' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
arch/powerpc/cpu/mpc8220/i2c.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8220/i2c.c
b/arch/powerpc/cpu/mpc8220/i2c.c
index 76ecdf11e214e3e539c67535f140cffec33c3c5d..2f35d20c87e1929017adf1229fdcd9706f70e597 100644
(file)
--- a/
arch/powerpc/cpu/mpc8220/i2c.c
+++ b/
arch/powerpc/cpu/mpc8220/i2c.c
@@
-105,15
+105,13
@@
static int wait_for_bb (void)
status = mpc_reg_in (®s->sr);
while (timeout-- && (status & I2C_BB)) {
-#if 1
- volatile int temp;
mpc_reg_out (®s->cr, I2C_STA, I2C_STA);
-
temp =
mpc_reg_in (®s->dr);
+
(void)
mpc_reg_in (®s->dr);
mpc_reg_out (®s->cr, 0, I2C_STA);
mpc_reg_out (®s->cr, 0, 0);
mpc_reg_out (®s->cr, I2C_EN, 0);
-#endif
+
udelay (1000);
status = mpc_reg_in (®s->sr);
}