On Sun, Jul 26, 2015 at 12:05:16PM +0800, Axel Lin wrote: > This checking is done by regmap_get_i2c_bus() which is called in > devm_regmap_init_i2c(). > > Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx> Thanks Andrew > --- > drivers/leds/leds-tlc591xx.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c > index de16c29..b806eca 100644 > --- a/drivers/leds/leds-tlc591xx.c > +++ b/drivers/leds/leds-tlc591xx.c > @@ -231,10 +231,6 @@ tlc591xx_probe(struct i2c_client *client, > if (!count || count > tlc591xx->max_leds) > return -EINVAL; > > - if (!i2c_check_functionality(client->adapter, > - I2C_FUNC_SMBUS_BYTE_DATA)) > - return -EIO; > - > priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > if (!priv) > return -ENOMEM; > -- > 2.1.0 > > > -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html