From: Paul Walmsley Date: Tue, 12 Aug 2008 21:31:45 +0000 (-0600) Subject: OMAP2/3 clockdomains: autodeps should respect platform flags X-Git-Tag: v2.6.27-omap1~318 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f7e3cbb3f32144ff331a084cdf2b993f64674513;p=linux-2.6-omap-h63xx.git OMAP2/3 clockdomains: autodeps should respect platform flags 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index caa79924aac..49741e8c9cd 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c @@ -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);