cb710: handle DEBUG define in Makefile
authorPierre Ossman <pierre@ossman.eu>
Thu, 4 Jun 2009 06:00:40 +0000 (08:00 +0200)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:42:58 +0000 (22:42 +0200)
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/misc/cb710/Makefile
include/linux/cb710.h

index 62d51acfecafd17498c4276e4e4215caa8d7ef9a..7b80cbf1a609b75f710d9b308a45e66d2bd9deef 100644 (file)
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_CB710_DEBUG),y)
+       EXTRA_CFLAGS            += -DDEBUG
+endif
+
 obj-$(CONFIG_CB710_CORE)       += cb710.o
 
 cb710-y                                := core.o sgbuf2.o
index c3819e1ce1c6a00ce385f597ef7225169b9eb32f..a09213b5261681b494d8d57f6715fcc98c3279a3 100644 (file)
 #ifndef LINUX_CB710_DRIVER_H
 #define LINUX_CB710_DRIVER_H
 
-#ifdef CONFIG_CB710_DEBUG
-#define DEBUG
-#endif
-
 /* verify assumptions on platform_device framework */
 #define CONFIG_CB710_DEBUG_ASSUMPTIONS