]> err.no Git - linux-2.6/commitdiff
ACPI: EC: "DEBUG" needs to be defined earlier
authorMárton Németh <nm127@freemail.hu>
Thu, 24 Jan 2008 03:34:09 +0000 (22:34 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 03:34:09 +0000 (22:34 -0500)
The "DEBUG" symbol needs to be defined before #including <linux/kernel.h> to
get the pr_debug() working.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c

index 06c9f3520daab1f38cfaae83ea422d5bfbf086ad..987b967c74670728831af322571e4a182fb84d7e 100644 (file)
@@ -26,6 +26,9 @@
  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  */
 
+/* Uncomment next line to get verbose print outs*/
+/* #define DEBUG */
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
@@ -47,9 +50,6 @@
 #undef PREFIX
 #define PREFIX                         "ACPI: EC: "
 
-/* Uncomment next line to get verbose print outs*/
-/* #define DEBUG */
-
 /* EC status register */
 #define ACPI_EC_FLAG_OBF       0x01    /* Output buffer full */
 #define ACPI_EC_FLAG_IBF       0x02    /* Input buffer full */