summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-23 17:41:25 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:47 -0700
commit51926d5ee0be029fb45f10f42756df97279f8ad3 (patch)
tree651bfdf030853d4499f6729b7eb8b57f0247e38e /board
parent5368c55d4ca463405225dd184ecabf370b715c05 (diff)
downloadu-boot-imx-51926d5ee0be029fb45f10f42756df97279f8ad3.zip
u-boot-imx-51926d5ee0be029fb45f10f42756df97279f8ad3.tar.gz
u-boot-imx-51926d5ee0be029fb45f10f42756df97279f8ad3.tar.bz2
COMMON: Use __stringify() instead of rest of implementations
Fix up the rest of implementations of __stringify(). Signed-off-by: Marek Vasut <marex@denx.de> Cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board')
-rw-r--r--board/logicpd/zoom2/zoom2_serial.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/board/logicpd/zoom2/zoom2_serial.h b/board/logicpd/zoom2/zoom2_serial.h
index 4e30587..ad63a07 100644
--- a/board/logicpd/zoom2/zoom2_serial.h
+++ b/board/logicpd/zoom2/zoom2_serial.h
@@ -22,6 +22,8 @@
#ifndef ZOOM2_SERIAL_H
#define ZOOM2_SERIAL_H
+#include <linux/stringify.h>
+
extern int zoom2_debug_board_connected (void);
#define SERIAL_TL16CP754C_BASE 0x10000000 /* Zoom2 Serial chip address */
@@ -31,9 +33,6 @@ extern int zoom2_debug_board_connected (void);
#define QUAD_BASE_2 (SERIAL_TL16CP754C_BASE + 0x200)
#define QUAD_BASE_3 (SERIAL_TL16CP754C_BASE + 0x300)
-#define S(a) #a
-#define N(a) S(quad##a)
-
#define QUAD_INIT(n) \
int quad_init_##n(void) \
{ \
@@ -61,7 +60,7 @@ int quad_tstc_##n(void) \
} \
struct serial_device zoom2_serial_device##n = \
{ \
- N(n), \
+ __stringify(n), \
quad_init_##n, \
NULL, \
quad_setbrg_##n, \