mirror of
https://github.com/torvalds/linux.git
synced 2026-10-25 01:05:03 +02:00
pmdomain: rockchip: propagate subdomain add errors
rockchip_pm_add_subdomain() ignored the return value of its recursive
call, so a failure deeper in the hierarchy was silently dropped and
probe still succeeded with an incomplete domain tree.
Fixes: 6be05b5ec1 ("soc: rockchip: power-domain: add support for sub-power domains")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
parent
51c2db3ef0
commit
4c0d69d677
|
|
@ -1018,7 +1018,9 @@ static int rockchip_pm_add_subdomain(struct rockchip_pmu *pmu,
|
|||
parent_domain->name, child_domain->name);
|
||||
}
|
||||
|
||||
rockchip_pm_add_subdomain(pmu, np);
|
||||
error = rockchip_pm_add_subdomain(pmu, np);
|
||||
if (error)
|
||||
return error;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user