soc: rockchip: power-domain: Fix rockchip_pd_keepon_release crash

Change-Id: I6449e06ec7e8680ce94a197e10b9fa67cc62050e
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2019-09-26 21:47:11 +08:00
committed by Tao Huang
parent ca50cb058e
commit c8e2fd2ca9

View File

@@ -825,6 +825,9 @@ static int __init rockchip_pd_keepon_release(void)
struct rockchip_pm_domain *pd;
int i;
if (!g_pmu)
return 0;
for (i = 0; i < g_pmu->genpd_data.num_domains; i++) {
genpd = g_pmu->genpd_data.domains[i];
if (genpd) {