diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 983f1cb676be..66206b6357fc 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -83,7 +83,7 @@ static struct powerdomain *_pwrdm_deps_lookup(struct powerdomain *pwrdm, | |||
83 | if (!pwrdm || !deps || !omap_chip_is(pwrdm->omap_chip)) | 83 | if (!pwrdm || !deps || !omap_chip_is(pwrdm->omap_chip)) |
84 | return ERR_PTR(-EINVAL); | 84 | return ERR_PTR(-EINVAL); |
85 | 85 | ||
86 | for (pd = deps; pd; pd++) { | 86 | for (pd = deps; pd->pwrdm_name; pd++) { |
87 | 87 | ||
88 | if (!omap_chip_is(pd->omap_chip)) | 88 | if (!omap_chip_is(pd->omap_chip)) |
89 | continue; | 89 | continue; |
@@ -96,7 +96,7 @@ static struct powerdomain *_pwrdm_deps_lookup(struct powerdomain *pwrdm, | |||
96 | 96 | ||
97 | } | 97 | } |
98 | 98 | ||
99 | if (!pd) | 99 | if (!pd->pwrdm_name) |
100 | return ERR_PTR(-ENOENT); | 100 | return ERR_PTR(-ENOENT); |
101 | 101 | ||
102 | return pd->pwrdm; | 102 | return pd->pwrdm; |