mfd: twl6040: Remove duplicate register write
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Tue, 25 Feb 2014 13:28:20 +0000 (14:28 +0100)
committerPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 15 Apr 2014 07:16:26 +0000 (10:16 +0300)
commitb5fd1fa989f1b9c49e122c97a5ceae018229e01b
tree4eb318f66826797a36a0d1d1f1e0e4196062ac15
parent455c6fdbd219161bd09b1165f11699d6d73de11c
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>
drivers/mfd/twl6040.c