@ -706,15 +706,15 @@ static struct i2c *omap24_get_base(struct i2c_adapter *adap)
case 1 :
return ( struct i2c * ) I2C_BASE2 ;
break ;
# if (I2C_BUS_MAX > 2)
# if (CONFIG_SYS_ I2C_BUS_MAX > 2)
case 2 :
return ( struct i2c * ) I2C_BASE3 ;
break ;
# if (I2C_BUS_MAX > 3)
# if (CONFIG_SYS_ I2C_BUS_MAX > 3)
case 3 :
return ( struct i2c * ) I2C_BASE4 ;
break ;
# if (I2C_BUS_MAX > 4)
# if (CONFIG_SYS_ I2C_BUS_MAX > 4)
case 4 :
return ( struct i2c * ) I2C_BASE5 ;
break ;
@ -795,7 +795,7 @@ U_BOOT_I2C_ADAP_COMPLETE(omap24_1, omap24_i2c_init, omap24_i2c_probe,
CONFIG_SYS_OMAP24_I2C_SPEED1 ,
CONFIG_SYS_OMAP24_I2C_SLAVE1 ,
1 )
# if (I2C_BUS_MAX > 2)
# if (CONFIG_SYS_ I2C_BUS_MAX > 2)
# if !defined(CONFIG_SYS_OMAP24_I2C_SPEED2)
# define CONFIG_SYS_OMAP24_I2C_SPEED2 CONFIG_SYS_OMAP24_I2C_SPEED
# endif
@ -808,7 +808,7 @@ U_BOOT_I2C_ADAP_COMPLETE(omap24_2, omap24_i2c_init, omap24_i2c_probe,
CONFIG_SYS_OMAP24_I2C_SPEED2 ,
CONFIG_SYS_OMAP24_I2C_SLAVE2 ,
2 )
# if (I2C_BUS_MAX > 3)
# if (CONFIG_SYS_ I2C_BUS_MAX > 3)
# if !defined(CONFIG_SYS_OMAP24_I2C_SPEED3)
# define CONFIG_SYS_OMAP24_I2C_SPEED3 CONFIG_SYS_OMAP24_I2C_SPEED
# endif
@ -821,7 +821,7 @@ U_BOOT_I2C_ADAP_COMPLETE(omap24_3, omap24_i2c_init, omap24_i2c_probe,
CONFIG_SYS_OMAP24_I2C_SPEED3 ,
CONFIG_SYS_OMAP24_I2C_SLAVE3 ,
3 )
# if (I2C_BUS_MAX > 4)
# if (CONFIG_SYS_ I2C_BUS_MAX > 4)
# if !defined(CONFIG_SYS_OMAP24_I2C_SPEED4)
# define CONFIG_SYS_OMAP24_I2C_SPEED4 CONFIG_SYS_OMAP24_I2C_SPEED
# endif