disp: msm: sde: fix clk_array index during prepare fail
In clk enable failure case, pickup only enabled clks and disable them during unwind process. Change-Id: I004cf71a8ee567d56a1cd7f8f3d2f39ffb58fd61 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

父節點
4195464d87
當前提交
2eb06ab57f
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2015, 2017-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2015, 2017-2020 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/clk.h>
|
||||
@@ -457,8 +457,7 @@ int msm_dss_enable_clk(struct dss_clk *clk_arry, int num_clk, int enable)
|
||||
}
|
||||
|
||||
if (rc) {
|
||||
msm_dss_enable_clk(&clk_arry[i],
|
||||
i, false);
|
||||
msm_dss_enable_clk(clk_arry, i, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user