PNP: make pnp_dbg conditional directly on CONFIG_PNP_DEBUG
Subsystems (2)
PATCH 1/1 PNP: make pnp_dbg conditional directly on CONFIG_PNP_DEBUG
Seems pointless to require .c files to test CONFIG_PNP_DEBUG and conditionally define DEBUG before including <linux/pnp.h>. Just test CONFIG_PNP_DEBUG directly in pnp.h.
Signed-off-by Bjorn Helgaas <[email protected]>
drivers/pnp/card.c +0 -7
@@ -8,13 +8,6 @@#include <linux/config.h> #include <linux/module.h> #include <linux/slab.h> - -#ifdef CONFIG_PNP_DEBUG -#define DEBUG -#else -#undef DEBUG -#endif -#include <linux/pnp.h> #include "base.h"
drivers/pnp/driver.c +0 -7
@@ -11,13 +11,6 @@#include <linux/module.h> #include <linux/ctype.h> #include <linux/slab.h> - -#ifdef CONFIG_PNP_DEBUG -#define DEBUG -#else -#undef DEBUG -#endif -#include <linux/pnp.h> #include "base.h"
drivers/pnp/manager.c +0 -7
@@ -11,13 +11,6 @@#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> - -#ifdef CONFIG_PNP_DEBUG -#define DEBUG -#else -#undef DEBUG -#endif -#include <linux/pnp.h> #include "base.h"
drivers/pnp/quirks.c +0 -7
@@ -16,13 +16,6 @@#include <linux/kernel.h> #include <linux/string.h> #include <linux/slab.h> - -#ifdef CONFIG_PNP_DEBUG -#define DEBUG -#else -#undef DEBUG -#endif -#include <linux/pnp.h> #include "base.h"
drivers/pnp/support.c +0 -7
@@ -8,13 +8,6 @@#include <linux/config.h> #include <linux/module.h> #include <linux/ctype.h> - -#ifdef CONFIG_PNP_DEBUG -#define DEBUG -#else -#undef DEBUG -#endif -#include <linux/pnp.h> #include "base.h"
include/linux/pnp.h +1 -1
@@ -443,7 +443,7 @@ #define pnp_info(format, arg...) printk(KERN_INFO "pnp: " format "\n" , ## arg) #define pnp_warn(format, arg...) printk(KERN_WARNING "pnp: " format "\n" , ## arg) -#ifdef DEBUG +#ifdef CONFIG_PNP_DEBUG #define pnp_dbg(format, arg...) printk(KERN_DEBUG "pnp: " format "\n" , ## arg)#else #define pnp_dbg(format, arg...) do {} while (0)
drivers/pnp/pnpacpi/core.c +1 -0
@@ -19,6 +19,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <linux/config.h> #include <linux/acpi.h> #include <linux/pnp.h> #include <acpi/acpi_bus.h>