Patchwork [U-Boot,4/6] omap3: make get_board_rev() function weak

login
register
mail settings
Submitter Igor Grinberg
Date Jan. 2, 2012, 2:01 p.m.
Message ID <1325512895-10917-5-git-send-email-grinberg@compulab.co.il>
Download mbox | patch
Permalink /patch/133848/
State Changes Requested
Delegated to: Tom Rini
Headers show

Comments

Igor Grinberg - Jan. 2, 2012, 2:01 p.m.
From: Nikita Kiryanov <nikita@compulab.co.il>

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
 arch/arm/cpu/armv7/omap3/sys_info.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Tom Rini - Jan. 3, 2012, 2:36 p.m.
On 01/02/2012 07:01 AM, Igor Grinberg wrote:
> From: Nikita Kiryanov <nikita@compulab.co.il>
> 
> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

Please add <linux/compiler.h> and just put __weak in front of
get_board_rev, thanks.

Patch

diff --git a/arch/arm/cpu/armv7/omap3/sys_info.c b/arch/arm/cpu/armv7/omap3/sys_info.c
index 22887ae..cde4093 100644
--- a/arch/arm/cpu/armv7/omap3/sys_info.c
+++ b/arch/arm/cpu/armv7/omap3/sys_info.c
@@ -197,10 +197,11 @@  u32 get_gpmc0_width(void)
  * get_board_rev() - setup to pass kernel board revision information
  * returns:(bit[0-3] sub version, higher bit[7-4] is higher version)
  *************************************************************************/
-u32 get_board_rev(void)
+u32 __get_board_rev(void)
 {
 	return 0x20;
 }
+u32 get_board_rev(void) __attribute__((weak, alias("__get_board_rev")));
 
 /********************************************************
  *  get_base(); get upper addr of current execution