diff options
author | Tony Lindgren <tony@atomide.com> | 2016-07-04 02:29:45 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-07-04 02:29:45 -0400 |
commit | b3bf289c1c4561b4262084b64d1a115e4ba845cf (patch) | |
tree | a490d9c90a50157b20cf944695252ef283e83eaa /arch/arm/mach-omap2 | |
parent | 44e7475d40eb26b8d3a6e2b2f7a5f12a5fe0942e (diff) |
ARM: OMAP2+: Fix build with CONFIG_SMP and CONFIG_PM is not set
I found one more make randconfig build error with the recent
SMP kexec changes. We need the mpuss now always available early.
Fixes: 0573b957fc21 ("ARM: OMAP4+: Prevent CPU1 related hang
with kexec")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index cd820f5df028..a7f2d051f524 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -78,13 +78,16 @@ obj-$(CONFIG_ARCH_OMAP4) += opp4xxx_data.o | |||
78 | endif | 78 | endif |
79 | 79 | ||
80 | # Power Management | 80 | # Power Management |
81 | omap-4-5-pm-common = omap-mpuss-lowpower.o | ||
82 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-pm-common) | ||
83 | obj-$(CONFIG_ARCH_OMAP5) += $(omap-4-5-pm-common) | ||
81 | obj-$(CONFIG_OMAP_PM_NOOP) += omap-pm-noop.o | 84 | obj-$(CONFIG_OMAP_PM_NOOP) += omap-pm-noop.o |
82 | 85 | ||
83 | ifeq ($(CONFIG_PM),y) | 86 | ifeq ($(CONFIG_PM),y) |
84 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o | 87 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o |
85 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o | 88 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o |
86 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o | 89 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o |
87 | omap-4-5-pm-common = pm44xx.o omap-mpuss-lowpower.o | 90 | omap-4-5-pm-common += pm44xx.o |
88 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-pm-common) | 91 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-pm-common) |
89 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-pm-common) | 92 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-pm-common) |
90 | obj-$(CONFIG_SOC_DRA7XX) += $(omap-4-5-pm-common) | 93 | obj-$(CONFIG_SOC_DRA7XX) += $(omap-4-5-pm-common) |
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c index 17515179e6ae..ad982465efd0 100644 --- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c +++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c | |||
@@ -64,7 +64,7 @@ | |||
64 | 64 | ||
65 | static void __iomem *sar_base; | 65 | static void __iomem *sar_base; |
66 | 66 | ||
67 | #ifdef CONFIG_SMP | 67 | #if defined(CONFIG_PM) && defined(CONFIG_SMP) |
68 | 68 | ||
69 | struct omap4_cpu_pm_info { | 69 | struct omap4_cpu_pm_info { |
70 | struct powerdomain *pwrdm; | 70 | struct powerdomain *pwrdm; |