Patchwork [U-Boot,2/3] arm/km: drop unneeded define

login
register
mail settings
Submitter Holger Brunck
Date July 4, 2013, 1:29 p.m.
Message ID <1372944549-19794-2-git-send-email-holger.brunck@keymile.com>
Download mbox | patch
Permalink /patch/256901/
State New
Delegated to: Prafulla Wadaskar
Headers show

Comments

Holger Brunck - July 4, 2013, 1:29 p.m.
CONFIG_BOOTCOUNT_LIMIT is used on all boards from this board series. So
remove this unneeded define.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
---
 board/keymile/km_arm/km_arm.c | 4 ----
 1 file changed, 4 deletions(-)

Patch

diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index b944887..24fcf70 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -180,7 +180,6 @@  static int initialize_unit_leds(void)
 	return 0;
 }
 
-#if defined(CONFIG_BOOTCOUNT_LIMIT)
 static void set_bootcount_addr(void)
 {
 	uchar buf[32];
@@ -189,7 +188,6 @@  static void set_bootcount_addr(void)
 	sprintf((char *)buf, "0x%x", bootcountaddr);
 	setenv("bootcountaddr", (char *)buf);
 }
-#endif
 
 int misc_init_r(void)
 {
@@ -226,9 +224,7 @@  int misc_init_r(void)
 
 	initialize_unit_leds();
 	set_km_env();
-#if defined(CONFIG_BOOTCOUNT_LIMIT)
 	set_bootcount_addr();
-#endif
 	return 0;
 }