projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/i2c/omap24xx_i2c.c: move all local variables to SRAM
[oweals/u-boot.git]
/
drivers
/
i2c
/
davinci_i2c.c
diff --git
a/drivers/i2c/davinci_i2c.c
b/drivers/i2c/davinci_i2c.c
index 5e3406dc8f4f04c8a87f1fd9e80aa280a4f658fd..2abddfb6ff97356e032e1daf99e5bc4673766776 100644
(file)
--- a/
drivers/i2c/davinci_i2c.c
+++ b/
drivers/i2c/davinci_i2c.c
@@
-78,13
+78,11
@@
static int poll_i2c_irq(int mask)
void flush_rx(void)
{
- int dummy;
-
while (1) {
if (!(REG(I2C_STAT) & I2C_STAT_RRDY))
break;
-
dummy =
REG(I2C_DRR);
+ REG(I2C_DRR);
REG(I2C_STAT) = I2C_STAT_RRDY;
udelay(1000);
}