diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap-wakeupgen.c')
-rw-r--r-- | arch/arm/mach-omap2/omap-wakeupgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c index 4bb6751864a5..fc5fb776a710 100644 --- a/arch/arm/mach-omap2/omap-wakeupgen.c +++ b/arch/arm/mach-omap2/omap-wakeupgen.c | |||
@@ -299,8 +299,6 @@ static void irq_save_context(void) | |||
299 | if (soc_is_dra7xx()) | 299 | if (soc_is_dra7xx()) |
300 | return; | 300 | return; |
301 | 301 | ||
302 | if (!sar_base) | ||
303 | sar_base = omap4_get_sar_ram_base(); | ||
304 | if (wakeupgen_ops && wakeupgen_ops->save_context) | 302 | if (wakeupgen_ops && wakeupgen_ops->save_context) |
305 | wakeupgen_ops->save_context(); | 303 | wakeupgen_ops->save_context(); |
306 | } | 304 | } |
@@ -598,6 +596,8 @@ static int __init wakeupgen_init(struct device_node *node, | |||
598 | irq_hotplug_init(); | 596 | irq_hotplug_init(); |
599 | irq_pm_init(); | 597 | irq_pm_init(); |
600 | 598 | ||
599 | sar_base = omap4_get_sar_ram_base(); | ||
600 | |||
601 | return 0; | 601 | return 0; |
602 | } | 602 | } |
603 | IRQCHIP_DECLARE(ti_wakeupgen, "ti,omap4-wugen-mpu", wakeupgen_init); | 603 | IRQCHIP_DECLARE(ti_wakeupgen, "ti,omap4-wugen-mpu", wakeupgen_init); |