diff options
author | Heiko Schocher <hs@denx.de> | 2010-11-15 08:20:39 +0100 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2010-11-17 08:04:03 +0100 |
commit | 9b107e6138e719ea5a0b924862a9b109c020c7ac (patch) | |
tree | a54b82c89d071dfcbe87b9fb88a0a0a691f9fab9 /post | |
parent | 0091337932130ebe9c0a64ac7ef922e9100353be (diff) | |
download | u-boot-9b107e6138e719ea5a0b924862a9b109c020c7ac.tar.gz |
post, i2c: add missing curly bracket in i2c_post_test
If CONFIG_SYS_POST_I2C_ADDRS is not defined and CONFIG_SYS_POST_I2C
is activated, i2c_probe() is not called in the for statement,
because missing curly bracket.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'post')
-rw-r--r-- | post/drivers/i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/post/drivers/i2c.c b/post/drivers/i2c.c index 4a1b1a49d1..4cbd9f3703 100644 --- a/post/drivers/i2c.c +++ b/post/drivers/i2c.c @@ -63,11 +63,12 @@ int i2c_post_test (int flags) unsigned int i; #ifndef CONFIG_SYS_POST_I2C_ADDRS /* Start at address 1, address 0 is the general call address */ - for (i = 1; i < 128; i++) + for (i = 1; i < 128; i++) { if (i2c_ignore_device(i)) continue; if (i2c_probe (i) == 0) return 0; + } /* No devices found */ return -1; |