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

parent
4195464d87
commit
2eb06ab57f
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// 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>
|
#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) {
|
if (rc) {
|
||||||
msm_dss_enable_clk(&clk_arry[i],
|
msm_dss_enable_clk(clk_arry, i, false);
|
||||||
i, false);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user