]> git.sur5r.net Git - u-boot/commitdiff
arm/km: drop unneeded define
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 27 Jan 2014 15:58:22 +0000 (16:58 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 13 Feb 2014 15:15:32 +0000 (16:15 +0100)
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>
Acked-by: Valentin Longchamp <valentin.longchamp@keymile.com>
board/keymile/km_arm/km_arm.c

index 5620737bf06f52cbccf8ead975529b77706f2202..946cbed92f1e15336e2793da8be08afee73978c5 100644 (file)
@@ -164,7 +164,6 @@ static int initialize_unit_leds(void)
        return 0;
 }
 
-#if defined(CONFIG_BOOTCOUNT_LIMIT)
 static void set_bootcount_addr(void)
 {
        uchar buf[32];
@@ -173,7 +172,6 @@ static void set_bootcount_addr(void)
        sprintf((char *)buf, "0x%x", bootcountaddr);
        setenv("bootcountaddr", (char *)buf);
 }
-#endif
 
 int misc_init_r(void)
 {
@@ -210,9 +208,7 @@ int misc_init_r(void)
 
        initialize_unit_leds();
        set_km_env();
-#if defined(CONFIG_BOOTCOUNT_LIMIT)
        set_bootcount_addr();
-#endif
        return 0;
 }