]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
leds: tlc591xx: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check
authorAxel Lin <axel.lin@ingics.com>
Sun, 26 Jul 2015 04:05:16 +0000 (12:05 +0800)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 28 Aug 2015 12:06:14 +0000 (14:06 +0200)
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>
drivers/leds/leds-tlc591xx.c

index de16c29d7895412ce48368b4b01a011b0449e587..b806eca83d27ede6ead3c08568a221767fd8bbae 100644 (file)
@@ -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;