File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
drivers/pmdomain/rockchip Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -910,7 +910,7 @@ static int rockchip_pm_domain_probe(struct platform_device *pdev)
910
910
* Prevent any rockchip_pmu_block() from racing with the remainder of
911
911
* setup (clocks, register initialization).
912
912
*/
913
- mutex_lock (& dmc_pmu_mutex );
913
+ guard ( mutex ) (& dmc_pmu_mutex );
914
914
915
915
for_each_available_child_of_node_scoped (np , node ) {
916
916
error = rockchip_pm_add_one_domain (pmu , node );
@@ -943,13 +943,10 @@ static int rockchip_pm_domain_probe(struct platform_device *pdev)
943
943
if (!WARN_ON_ONCE (dmc_pmu ))
944
944
dmc_pmu = pmu ;
945
945
946
- mutex_unlock (& dmc_pmu_mutex );
947
-
948
946
return 0 ;
949
947
950
948
err_out :
951
949
rockchip_pm_domain_cleanup (pmu );
952
- mutex_unlock (& dmc_pmu_mutex );
953
950
return error ;
954
951
}
955
952
You can’t perform that action at this time.
0 commit comments