diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-26 04:06:50 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-08 08:36:20 -0400 |
commit | bbd707acee279a61177a604822db92e8164d00db (patch) | |
tree | fe806947f2082f469a7e39683d6e275d694ec666 /arch/arm/mach-omap2/pm34xx.c | |
parent | 82c3bd03535f1571426fdd19b7d832f76b7ac85e (diff) |
ARM: omap2: use machine specific hook for late init
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 703bd1099259..c769b888e2c8 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -699,15 +699,12 @@ static void __init pm_errata_configure(void) | |||
699 | } | 699 | } |
700 | } | 700 | } |
701 | 701 | ||
702 | static int __init omap3_pm_init(void) | 702 | int __init omap3_pm_init(void) |
703 | { | 703 | { |
704 | struct power_state *pwrst, *tmp; | 704 | struct power_state *pwrst, *tmp; |
705 | struct clockdomain *neon_clkdm, *per_clkdm, *mpu_clkdm, *core_clkdm; | 705 | struct clockdomain *neon_clkdm, *per_clkdm, *mpu_clkdm, *core_clkdm; |
706 | int ret; | 706 | int ret; |
707 | 707 | ||
708 | if (!cpu_is_omap34xx()) | ||
709 | return -ENODEV; | ||
710 | |||
711 | if (!omap3_has_io_chain_ctrl()) | 708 | if (!omap3_has_io_chain_ctrl()) |
712 | pr_warning("PM: no software I/O chain control; some wakeups may be lost\n"); | 709 | pr_warning("PM: no software I/O chain control; some wakeups may be lost\n"); |
713 | 710 | ||
@@ -808,5 +805,3 @@ err2: | |||
808 | err1: | 805 | err1: |
809 | return ret; | 806 | return ret; |
810 | } | 807 | } |
811 | |||
812 | late_initcall(omap3_pm_init); | ||