mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user