From 5368c55d4ca463405225dd184ecabf370b715c05 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 23 Sep 2012 17:41:24 +0200 Subject: COMMON: Use __stringify() instead of MK_STR() Kill multiple occurances and redeclaration of MK_STR in favor of __stringify(). Signed-off-by: Marek Vasut Cc: Wolfgang Denk Signed-off-by: Tom Rini --- arch/blackfin/include/asm/config-pre.h | 2 -- arch/blackfin/lib/board.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'arch/blackfin') diff --git a/arch/blackfin/include/asm/config-pre.h b/arch/blackfin/include/asm/config-pre.h index 4ce67d4cd0..be5687ce6f 100644 --- a/arch/blackfin/include/asm/config-pre.h +++ b/arch/blackfin/include/asm/config-pre.h @@ -10,8 +10,6 @@ #define __ASM_BLACKFIN_CONFIG_PRE_H__ /* Misc helper functions */ -#define XMK_STR(x) #x -#define MK_STR(x) XMK_STR(x) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* Bootmode defines -- your config needs to select this via CONFIG_BFIN_BOOT_MODE. diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index c380d271e7..6a9282c77b 100644 --- a/arch/blackfin/lib/board.c +++ b/arch/blackfin/lib/board.c @@ -209,7 +209,7 @@ static int global_board_data_init(void) gd->bd = bd; bd->bi_r_version = version_string; - bd->bi_cpu = MK_STR(CONFIG_BFIN_CPU); + bd->bi_cpu = __stringify(CONFIG_BFIN_CPU); bd->bi_board_name = BFIN_BOARD_NAME; bd->bi_vco = get_vco(); bd->bi_cclk = get_cclk(); -- cgit