This patch turns off clock and bus control as well releases other
software resources upon driver exit. This patch
corrects crash due to resource leakage.
CRs-Fixed:
1018309
Change-Id: Ie0c6639fff9b829a58e12037f88c6508864b60a0
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
error_init_queue:
mgr->ops_hw_destroy(mgr);
error_hw_init:
+error_map_hw_ops:
+ sde_rotator_clk_ctrl(mgr, false);
+ sde_rotator_resource_ctrl(mgr, false);
pm_runtime_disable(mgr->device);
sde_rotator_res_destroy(mgr);
error_res_init:
error_parse_dt:
sysfs_remove_group(&mgr->device->kobj, &sde_rotator_fs_attr_group);
error_create_sysfs:
-error_map_hw_ops:
devm_kfree(&pdev->dev, mgr);
*pmgr = NULL;
return ret;