X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Fdrivers%2Fi2c.c;h=4cbd9f3703f8f2b9f47cf9ad0626a2dbdbf281dc;hb=310ae55efe14aa7923b16c718cbdb22ec364b18b;hp=4a1b1a49d17bd481e401070ad44b78d69779638b;hpb=d963e84c92a63b4e6c4f2f80482a5ecbe9b24fe0;p=u-boot 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;