diff options
author | Wayne Zou <b36644@freescale.com> | 2011-06-02 13:11:10 +0800 |
---|---|---|
committer | Alan Tull <alan.tull@freescale.com> | 2011-06-03 16:45:49 -0500 |
commit | c8e947b4e8404f7cabe3819bcf3e08ad63d05036 (patch) | |
tree | d4575920b1507fc5067a0bd5f424169be339cf0c /arch | |
parent | e7447c876eeb600a62aac694475dc88b510e43ae (diff) |
ENGR00144428 mx51BBG: fix segment fault when suspend for no da9053
mx51BBG: fix segment fault when suspend for no da9053 present
Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx5/pm.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-mx5/pm.c b/arch/arm/mach-mx5/pm.c index cd6a1243aced..13bd979c3af8 100644 --- a/arch/arm/mach-mx5/pm.c +++ b/arch/arm/mach-mx5/pm.c @@ -117,9 +117,9 @@ static int mx5_suspend_enter(suspend_state_t state) flush_cache_all(); if (cpu_is_mx51() || cpu_is_mx53()) { - if ((machine_is_mx53_smd() || - machine_is_mx53_loco()) && - (!board_is_mx53_loco_mc34708())) { + if (machine_is_mx53_smd() || + (machine_is_mx53_loco() && + (!board_is_mx53_loco_mc34708()))) { if (board_is_rev(BOARD_REV_4) || machine_is_mx53_loco()) { mx53_smd_loco_irq_wake_fixup(); @@ -138,9 +138,11 @@ static int mx5_suspend_enter(suspend_state_t state) } /* Run the suspend code from iRAM. */ suspend_in_iram(suspend_param1); - - if (da9053_get_chip_version()) - da9053_restore_volt_settings(); + if (machine_is_mx53_smd() || + (machine_is_mx53_loco() && + (!board_is_mx53_loco_mc34708()))) + if (da9053_get_chip_version()) + da9053_restore_volt_settings(); /*clear the EMPGC0/1 bits */ __raw_writel(0, MXC_SRPG_EMPGC0_SRPGCR); __raw_writel(0, MXC_SRPG_EMPGC1_SRPGCR); |