diff options
-rw-r--r-- | arch/arm/plat-omap/common.c | 9 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-secure.h | 5 |
2 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 0a9b9a970113..89a3723b3538 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -77,3 +77,12 @@ void __init omap_init_consistent_dma_size(void) | |||
77 | init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20); | 77 | init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20); |
78 | #endif | 78 | #endif |
79 | } | 79 | } |
80 | |||
81 | /* | ||
82 | * Stub function for OMAP2 so that common files | ||
83 | * continue to build when custom builds are used | ||
84 | */ | ||
85 | int __weak omap_secure_ram_reserve_memblock(void) | ||
86 | { | ||
87 | return 0; | ||
88 | } | ||
diff --git a/arch/arm/plat-omap/include/plat/omap-secure.h b/arch/arm/plat-omap/include/plat/omap-secure.h index 8c7994ce9869..0e4acd2d2deb 100644 --- a/arch/arm/plat-omap/include/plat/omap-secure.h +++ b/arch/arm/plat-omap/include/plat/omap-secure.h | |||
@@ -3,12 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | 5 | ||
6 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) | ||
7 | extern int omap_secure_ram_reserve_memblock(void); | 6 | extern int omap_secure_ram_reserve_memblock(void); |
8 | #else | ||
9 | static inline void omap_secure_ram_reserve_memblock(void) | ||
10 | { } | ||
11 | #endif | ||
12 | 7 | ||
13 | #ifdef CONFIG_OMAP4_ERRATA_I688 | 8 | #ifdef CONFIG_OMAP4_ERRATA_I688 |
14 | extern int omap_barrier_reserve_memblock(void); | 9 | extern int omap_barrier_reserve_memblock(void); |