summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2010-05-22 00:57:26 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-05-22 00:58:06 -0700
commitf2126a99675a930b3ab5258698d82b2a3c69af3f (patch)
tree8a7eedaacdc33f96c0e60a662e927219626ea249 /drivers/input
parent3734574cac1002e4cf037e3591cf222b1e04dfa4 (diff)
downloadlinux-f2126a99675a930b3ab5258698d82b2a3c69af3f.tar.gz
linux-f2126a99675a930b3ab5258698d82b2a3c69af3f.tar.bz2
linux-f2126a99675a930b3ab5258698d82b2a3c69af3f.zip
Input: twl4030-vibra - correct the power down sequence
It is better to turn off the first APLL, than the codec. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/twl4030-vibra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c
index fee9eac8e04a..4f9b2afc24e8 100644
--- a/drivers/input/misc/twl4030-vibra.c
+++ b/drivers/input/misc/twl4030-vibra.c
@@ -90,8 +90,8 @@ static void vibra_disable(struct vibra_info *info)
twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
(reg & ~TWL4030_VIBRA_EN), TWL4030_REG_VIBRA_CTL);
- twl4030_codec_disable_resource(TWL4030_CODEC_RES_POWER);
twl4030_codec_disable_resource(TWL4030_CODEC_RES_APLL);
+ twl4030_codec_disable_resource(TWL4030_CODEC_RES_POWER);
info->enabled = false;
}