]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP2/3 clockdomains: autodeps should respect platform flags
authorPaul Walmsley <paul@pwsan.com>
Tue, 12 Aug 2008 21:31:45 +0000 (15:31 -0600)
committerTony Lindgren <tony@atomide.com>
Wed, 13 Aug 2008 07:41:07 +0000 (10:41 +0300)
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>
arch/arm/mach-omap2/clockdomain.c

index caa79924aac7848a4e384109069cf87f08587087..49741e8c9cd095eae4133a276e68cff430f35b62 100644 (file)
@@ -96,6 +96,9 @@ static void _clkdm_add_autodeps(struct clockdomain *clkdm)
        struct clkdm_pwrdm_autodep *autodep;
 
        for (autodep = autodeps; autodep->pwrdm.ptr; autodep++) {
+               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);
@@ -118,6 +121,9 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm)
        struct clkdm_pwrdm_autodep *autodep;
 
        for (autodep = autodeps; autodep->pwrdm.ptr; autodep++) {
+               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);