aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/musb-new/linux-compat.h
blob: 92449775799f2e5a2a1f3e9119a657e337011969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __LINUX_COMPAT_H__
#define __LINUX_COMPAT_H__

#include <malloc.h>
#include <linux/list.h>
#include <linux/compat.h>

#define pr_debug(fmt, args...) debug(fmt, ##args)

#define WARN(condition, fmt, args...) ({	\
	int ret_warn = !!condition;		\
	if (ret_warn)				\
		printf(fmt, ##args);		\
	ret_warn; })

#define device_init_wakeup(dev, a) do {} while (0)

#define platform_data device_data

#ifndef wmb
#define wmb()			asm volatile (""   : : : "memory")
#endif

#define msleep(a)	udelay(a * 1000)

/*
 * Map U-Boot config options to Linux ones
 */
#ifdef CONFIG_OMAP34XX
#define CONFIG_SOC_OMAP3430
#endif

#ifdef CONFIG_OMAP4430
#define CONFIG_ARCH_OMAP4
#endif

#endif /* __LINUX_COMPAT_H__ */