COMMON: Use __stringify() instead of rest of implementations
[platform/kernel/u-boot.git] / include / nios2.h
index 54954e3..df8126a 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef __NIOS2_H__
 #define __NIOS2_H__
 
+#include <linux/stringify.h>
+
 /*------------------------------------------------------------------------
  * Control registers -- use with wrctl() & rdctl()
  *----------------------------------------------------------------------*/
 /*------------------------------------------------------------------------
  * Access to control regs
  *----------------------------------------------------------------------*/
-#define _str_(x) #x
 
 #define rdctl(reg)\
        ({unsigned int val;\
-       asm volatile( "rdctl %0, ctl" _str_(reg)\
+       asm volatile("rdctl %0, ctl" __stringify(reg) \
                : "=r" (val) ); val;})
 
 #define wrctl(reg,val)\