summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2013-07-03 11:11:47 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-08-22 16:50:29 +0200
commit2f96b06be5838bcb5e2ee7cbeba4fe59edfd29b0 (patch)
tree11a28f5a7277f636dc08016ecf7dd88724f86768 /include
parentbe3dbef50262e60bcdaf0a6992cec5ed891fecbb (diff)
downloadu-boot-imx-2f96b06be5838bcb5e2ee7cbeba4fe59edfd29b0.zip
u-boot-imx-2f96b06be5838bcb5e2ee7cbeba4fe59edfd29b0.tar.gz
u-boot-imx-2f96b06be5838bcb5e2ee7cbeba4fe59edfd29b0.tar.bz2
linux/compat.h: move dev_err, dev_info and dev_dbg from usb driver to compat.h
Since kernel code current use many dev_xxx() instead of using printk. To compatible, move those dev_xxx from usb driver to linux/compat.h. Then all driver code can use dev_err, dev_info and dev_vdbg. This patch also removed duplicated macro definitions in usb driver. Signed-off-by: Josh Wu <josh.wu@atmel.com> Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index e1338bf..3fdfb39 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -3,6 +3,14 @@
#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