ARM: OMAP2+: Move stubbed secure_sram_reserve function to a common.c and call it __weak
omap_secure_ram_reserve_memblock is stubbed for OMAP1,2 only builds using a ifdef check. But this results in adding CONFIG_ARCH_OMAPxx checks for future socs that use the real function. So move this to common.c file and call it __weak. Signed-off-by: R Sricharan <r.sricharan@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
This commit is contained in:
parent
fb584511c4
commit
e799840a09
|
@ -77,3 +77,12 @@ void __init omap_init_consistent_dma_size(void)
|
||||||
init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20);
|
init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stub function for OMAP2 so that common files
|
||||||
|
* continue to build when custom builds are used
|
||||||
|
*/
|
||||||
|
int __weak omap_secure_ram_reserve_memblock(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
@ -3,12 +3,7 @@
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
|
|
||||||
extern int omap_secure_ram_reserve_memblock(void);
|
extern int omap_secure_ram_reserve_memblock(void);
|
||||||
#else
|
|
||||||
static inline void omap_secure_ram_reserve_memblock(void)
|
|
||||||
{ }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_OMAP4_ERRATA_I688
|
#ifdef CONFIG_OMAP4_ERRATA_I688
|
||||||
extern int omap_barrier_reserve_memblock(void);
|
extern int omap_barrier_reserve_memblock(void);
|
||||||
|
|
Loading…
Reference in New Issue