]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linux/compat.h
board:samsung:trats: add env variables describing platform
[karo-tx-uboot.git] / include / linux / compat.h
index 39c693f7a8c0a50ab1addfe1b90696908dd373e1..3fdfb399b50fde478c2bfd81483576697b468671 100644 (file)
@@ -1,11 +1,16 @@
 #ifndef _LINUX_COMPAT_H_
 #define _LINUX_COMPAT_H_
 
-#define __user
-#define __iomem
-
 #define ndelay(x)      udelay(1)
 
+#define dev_dbg(dev, fmt, args...)             \
+       debug(fmt, ##args)
+#define dev_vdbg(dev, fmt, args...)            \
+       debug(fmt, ##args)
+#define dev_info(dev, fmt, args...)            \
+       printf(fmt, ##args)
+#define dev_err(dev, fmt, args...)             \
+       printf(fmt, ##args)
 #define printk printf
 
 #define KERN_EMERG
@@ -48,5 +53,8 @@
 #define BUG_ON(condition) do { if (condition) BUG(); } while(0)
 #endif /* BUG */
 
+#define WARN_ON(x) if (x) {printf("WARNING in %s line %d\n" \
+                                 , __FILE__, __LINE__); }
+
 #define PAGE_SIZE      4096
 #endif