diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c index 7e9ed99da7b..edb8a09ad30 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c @@ -516,12 +516,6 @@ struct i2c_master_s *lpc17_40_i2cbus_initialize(int port) { struct lpc17_40_i2cdev_s *priv; - if (port > 1) - { - i2cerr("ERROR: LPC I2C Only supports ports 0 and 1\n"); - return NULL; - } - irqstate_t flags; uint32_t regval; @@ -615,6 +609,7 @@ struct i2c_master_s *lpc17_40_i2cbus_initialize(int port) else #endif { + i2cerr("ERROR: LPC I2C Only supports ports 0, 1 and 2\n"); return NULL; }