aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pm-asm-offsets.c
diff options
context:
space:
mode:
authorGravatar Dave Gerlach <d-gerlach@ti.com> 2018-04-11 16:15:43 -0500
committerGravatar Tony Lindgren <tony@atomide.com> 2018-04-18 10:07:13 -0700
commit5692fceebeb7f11c07e2a990f7711a01ae437de2 (patch)
treea7a49eef9d98f4eda7fb47bde9edeeaefc85be6b /arch/arm/mach-omap2/pm-asm-offsets.c
parentLinux 4.17-rc1 (diff)
downloadlinux-5692fceebeb7f11c07e2a990f7711a01ae437de2.tar.gz
linux-5692fceebeb7f11c07e2a990f7711a01ae437de2.tar.bz2
linux-5692fceebeb7f11c07e2a990f7711a01ae437de2.zip
ARM: OMAP2+: Fix build when using split object directories
The sleep33xx and sleep43xx files should not depend on a header file generated in drivers/memory. Remove this dependency and instead allow both drivers/memory and arch/arm/mach-omap2 to generate all macros needed in headers local to their own paths. This fixes an issue where the build fail will when using O= to set a split object directory and arch/arm/mach-omap2 is built before drivers/memory with the following error: .../drivers/memory/emif-asm-offsets.c:1:0: fatal error: can't open drivers/memory/emif-asm-offsets.s for writing: No such file or directory compilation terminated. Fixes: 41d9d44d7258 ("ARM: OMAP2+: pm33xx-core: Add platform code needed for PM") Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Acked-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm-asm-offsets.c')
-rw-r--r--arch/arm/mach-omap2/pm-asm-offsets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm-asm-offsets.c b/arch/arm/mach-omap2/pm-asm-offsets.c
index 6d4392da7c11..b9846b19e5e2 100644
--- a/arch/arm/mach-omap2/pm-asm-offsets.c
+++ b/arch/arm/mach-omap2/pm-asm-offsets.c
@@ -7,9 +7,12 @@
#include <linux/kbuild.h>
#include <linux/platform_data/pm33xx.h>
+#include <linux/ti-emif-sram.h>
int main(void)
{
+ ti_emif_asm_offsets();
+
DEFINE(AMX3_PM_WFI_FLAGS_OFFSET,
offsetof(struct am33xx_pm_sram_data, wfi_flags));
DEFINE(AMX3_PM_L2_AUX_CTRL_VAL_OFFSET,