summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-26 12:05:16 +0800
committerJacek Anaszewski <j.anaszewski@samsung.com>2015-08-28 14:06:14 +0200
commitf3a2a097a37acfb7c28da171248d15b9bb2e657b (patch)
treeb498ff24d5f03d142cd0f918073fb63e7c8d7aef /drivers
parent259f5ba308ee46c616ced3d336d7ab8e06f5a6ce (diff)
downloadop-kernel-dev-f3a2a097a37acfb7c28da171248d15b9bb2e657b.zip
op-kernel-dev-f3a2a097a37acfb7c28da171248d15b9bb2e657b.tar.gz
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 <axel.lin@ingics.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/leds/leds-tlc591xx.c4
1 files changed, 0 insertions, 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;
OpenPOWER on IntegriCloud