mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
soc: rockchip: power-domain: Avoid adding a domain repeatedly
As one domain may have multiple parent domains, so the domain may appear multiple times in pmu device node, it will be added repeatedly. Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: I2d87c265d52c4e767d710f41dac6dd11b91baa69
This commit is contained in:
@@ -731,6 +731,8 @@ static int rockchip_pm_add_one_domain(struct rockchip_pmu *pmu,
|
||||
node, id);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (pmu->genpd_data.domains[id])
|
||||
return 0;
|
||||
|
||||
pd_info = &pmu->info->domain_info[id];
|
||||
if (!pd_info) {
|
||||
|
||||
Reference in New Issue
Block a user