From: Lothar Waßmann Date: Thu, 26 Jun 2014 10:09:34 +0000 (+0200) Subject: arm: am33xx: define cpu_mmc_init() as weak symbol X-Git-Tag: KARO-TX-2014-07-10~11 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=bdb29c0c34b2cbc7cf65270782d294307f57fc3b arm: am33xx: define cpu_mmc_init() as weak symbol define the 'am33xx' cpu_mmc_init() implementation as weak symbol, so it can be overridden by platform specific code! --- diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c index 5b3cefb62f..032d28c1cb 100644 --- a/arch/arm/cpu/armv7/am33xx/board.c +++ b/arch/arm/cpu/armv7/am33xx/board.c @@ -98,7 +98,7 @@ void enable_caches(void) #endif #if defined(CONFIG_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD) -int cpu_mmc_init(bd_t *bis) +int __cpu_mmc_init(bd_t *bis) { int ret; @@ -108,6 +108,8 @@ int cpu_mmc_init(bd_t *bis) return omap_mmc_init(1, 0, 0, -1, -1); } +/* let platform code be able to override this! */ +int cpu_mmc_init(bd_t *bis) __attribute__((weak, alias("__cpu_mmc_init"))); #endif void setup_clocks_for_console(void)