mfd: twl6040: Remove duplicate register write
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Tue, 25 Feb 2014 13:28:20 +0000 (14:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:27 +0000 (08:58 +0000)
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 <peter.ujfalusi@ti.com>
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c

index 75316fb33448d6041d13e91f1c02c9321cd03818..f15114f8c2582cc6eb91f44f8289af2fd60202ee 100644 (file)
@@ -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));
 
This page took 0.025688 seconds and 5 git commands to generate.