mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
misc: isa1200: properly disable clocks
Since clk_prepare_enable is being used when enabling clocks, clk_disable_prepare should be used to disable them. CRs-fixed: 453579 Change-Id: Ic15c99e1fa82e45a3b9165af60c104a6bb736f92 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
This commit is contained in:
parent
9e0a1c0e80
commit
74a5497964
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* Copyright (C) 2009 Samsung Electronics
|
||||
* Kyungmin Park <kyungmin.park@samsung.com>
|
||||
* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
|
@ -164,7 +164,7 @@ static void isa1200_vib_set(struct isa1200_chip *haptic, int enable)
|
|||
|
||||
/* de-vote clock */
|
||||
if (haptic->pdata->need_pwm_clk && haptic->clk_on) {
|
||||
clk_disable(haptic->pwm_clk);
|
||||
clk_disable_unprepare(haptic->pwm_clk);
|
||||
haptic->clk_on = false;
|
||||
}
|
||||
/* check for board specific clk callback */
|
||||
|
@ -181,7 +181,7 @@ static void isa1200_vib_set(struct isa1200_chip *haptic, int enable)
|
|||
|
||||
dis_clk:
|
||||
if (haptic->pdata->need_pwm_clk && haptic->clk_on) {
|
||||
clk_disable(haptic->pwm_clk);
|
||||
clk_disable_unprepare(haptic->pwm_clk);
|
||||
haptic->clk_on = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue