cb710: handle DEBUG define in Makefile
Pierre Ossman [Thu, 4 Jun 2009 06:00:40 +0000 (08:00 +0200)]
Signed-off-by: Pierre Ossman <pierre@ossman.eu>

drivers/misc/cb710/Makefile
include/linux/cb710.h

index 62d51ac..7b80cbf 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 c3819e1..a09213b 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