1 #ifndef __LINUX_COMPAT_H__
2 #define __LINUX_COMPAT_H__
5 #include <linux/list.h>
6 #include <linux/compat.h>
8 #define pr_debug(fmt, args...) debug(fmt, ##args)
10 #define WARN(condition, fmt, args...) ({ \
11 int ret_warn = !!condition; \
13 printf(fmt, ##args); \
16 #define device_init_wakeup(dev, a) do {} while (0)
18 #define platform_data device_data
21 #define wmb() asm volatile ("" : : : "memory")
24 #define msleep(a) udelay(a * 1000)
27 * Map U-Boot config options to Linux ones
29 #ifdef CONFIG_OMAP34XX
30 #define CONFIG_SOC_OMAP3430
33 #ifdef CONFIG_OMAP4430
34 #define CONFIG_ARCH_OMAP4
37 #endif /* __LINUX_COMPAT_H__ */