]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/drivers/i2c.c
Merge branch 'master' of git://git.denx.de/u-boot-samsung
[karo-tx-uboot.git] / post / drivers / i2c.c
index 3080e81b5bf38434946285d54df62bdf58c12ee2..4cbd9f3703f8f2b9f47cf9ad0626a2dbdbf281dc 100644 (file)
@@ -63,18 +63,19 @@ 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;
 #else
        unsigned int ret  = 0;
        int j;
-       const unsigned char i2c_addr_list[] = CONFIG_SYS_POST_I2C_ADDRS;
+       unsigned char i2c_addr_list[] = CONFIG_SYS_POST_I2C_ADDRS;
 
        /* Start at address 1, address 0 is the general call address */
        for (i = 1; i < 128; i++) {