Skip to content

Commit

Permalink
[ARM] OMAP2/3 clockdomains: autodeps should respect platform flags
Browse files Browse the repository at this point in the history
Fix the clockdomain autodep code to respect omap_chip platform flags.

Resolves "Unable to handle kernel paging request at virtual address
5f75706d" panic during power management initialization on OMAP2.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Paul Walmsley authored and Russell King committed Feb 8, 2009
1 parent 054ce50 commit d96df00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-omap2/clockdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ static void _clkdm_add_autodeps(struct clockdomain *clkdm)
if (IS_ERR(autodep->pwrdm.ptr))
continue;

if (!omap_chip_is(autodep->omap_chip))
continue;

pr_debug("clockdomain: adding %s sleepdep/wkdep for "
"pwrdm %s\n", autodep->pwrdm.ptr->name,
clkdm->pwrdm.ptr->name);
Expand All @@ -125,6 +128,9 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm)
if (IS_ERR(autodep->pwrdm.ptr))
continue;

if (!omap_chip_is(autodep->omap_chip))
continue;

pr_debug("clockdomain: removing %s sleepdep/wkdep for "
"pwrdm %s\n", autodep->pwrdm.ptr->name,
clkdm->pwrdm.ptr->name);
Expand Down

0 comments on commit d96df00

Please sign in to comment.