Fix error path in gdsc_register() and cleanup code in gdsc_unregister() to properly unwind all genpd registration calls. Both patches bear two fixes tags, since part of the issue was present in the very first commit adding support for GDSCs, part of the issue was added when adding hiearchical power domains support to GDSC code. ---------------------------------------------------------------- Dmitry Baryshkov (2): clk: qcom: fix error_path in gdsc_register clk: qcom: fix domains cleanup in gdsc_unregister drivers/clk/qcom/gdsc.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-)