From: Axel Lin Date: Sun, 26 Jul 2015 04:05:16 +0000 (+0800) Subject: leds: tlc591xx: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f3a2a097a37acfb7c28da171248d15b9bb2e657b;p=openwrt%2Fstaging%2Fblogic.git leds: tlc591xx: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check This checking is done by regmap_get_i2c_bus() which is called in devm_regmap_init_i2c(). Signed-off-by: Axel Lin Reviewed-by: Andrew Lunn Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c index de16c29d7895..b806eca83d27 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;