diff options
| author | Florian Vaussard <florian.vaussard@epfl.ch> | 2014-02-25 08:28:20 -0500 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 04:58:27 -0400 |
| commit | f8935e1cfcccd4904ee1bd1420aa781d43175479 (patch) | |
| tree | e78dac8bab74cd861bbedb9d2a83d2a003c7eb9a | |
| parent | 16263f2879afecb7772f4bae238bca66352ecffe (diff) | |
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 <peter.ujfalusi@ti.com>
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
| -rw-r--r-- | drivers/mfd/twl6040.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, | |||
| 703 | } | 703 | } |
| 704 | 704 | ||
| 705 | /* dual-access registers controlled by I2C only */ | 705 | /* dual-access registers controlled by I2C only */ |
| 706 | twl6040_set_bits(twl6040, TWL6040_REG_ACCCTL, TWL6040_I2CSEL); | ||
| 707 | regmap_register_patch(twl6040->regmap, twl6040_patch, | 706 | regmap_register_patch(twl6040->regmap, twl6040_patch, |
| 708 | ARRAY_SIZE(twl6040_patch)); | 707 | ARRAY_SIZE(twl6040_patch)); |
| 709 | 708 | ||
