From: Florian Vaussard Date: Tue, 25 Feb 2014 13:28:20 +0000 (+0100) Subject: mfd: twl6040: Remove duplicate register write X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8935e1cfcccd4904ee1bd1420aa781d43175479;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: twl6040: Remove duplicate register write When probing, regmap_register_patch() will bypass the cache and perform i2c writes for the given patches. It is thus unnecessary to manually set the TWL6040_REG_ACCCTL register just before, as it will be done when registering the twl6040_patch. Acked-by: Peter Ujfalusi Signed-off-by: Florian Vaussard Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index 75316fb33448..f15114f8c258 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -703,7 +703,6 @@ static int twl6040_probe(struct i2c_client *client, } /* dual-access registers controlled by I2C only */ - twl6040_set_bits(twl6040, TWL6040_REG_ACCCTL, TWL6040_I2CSEL); regmap_register_patch(twl6040->regmap, twl6040_patch, ARRAY_SIZE(twl6040_patch));