mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
[ARM] 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 <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
054ce503ae
commit
d96df00d6d
@ -100,6 +100,9 @@ static void _clkdm_add_autodeps(struct clockdomain *clkdm)
|
|||||||
if (IS_ERR(autodep->pwrdm.ptr))
|
if (IS_ERR(autodep->pwrdm.ptr))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!omap_chip_is(autodep->omap_chip))
|
||||||
|
continue;
|
||||||
|
|
||||||
pr_debug("clockdomain: adding %s sleepdep/wkdep for "
|
pr_debug("clockdomain: adding %s sleepdep/wkdep for "
|
||||||
"pwrdm %s\n", autodep->pwrdm.ptr->name,
|
"pwrdm %s\n", autodep->pwrdm.ptr->name,
|
||||||
clkdm->pwrdm.ptr->name);
|
clkdm->pwrdm.ptr->name);
|
||||||
@ -125,6 +128,9 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm)
|
|||||||
if (IS_ERR(autodep->pwrdm.ptr))
|
if (IS_ERR(autodep->pwrdm.ptr))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!omap_chip_is(autodep->omap_chip))
|
||||||
|
continue;
|
||||||
|
|
||||||
pr_debug("clockdomain: removing %s sleepdep/wkdep for "
|
pr_debug("clockdomain: removing %s sleepdep/wkdep for "
|
||||||
"pwrdm %s\n", autodep->pwrdm.ptr->name,
|
"pwrdm %s\n", autodep->pwrdm.ptr->name,
|
||||||
clkdm->pwrdm.ptr->name);
|
clkdm->pwrdm.ptr->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user