diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-29 03:30:20 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-29 03:30:20 -0500 |
commit | c65631781eb0f2e81865017c1484e9aef76e1b61 (patch) | |
tree | 47bb68ecda4dfeecebbc8186a1d7fd12ec03c0d6 /drivers/mmc/Makefile | |
parent | 730c9b7e6630f786fcec026fb11d2e6f2c90fdcb (diff) |
[MMC] Pass -DDEBUG on compiler command line if MMC_DEBUG selected
Rather than each driver test MMC_DEBUG itself, and define DEBUG,
pass it in via the makefile instead.
Fix drivers to use pr_debug() where appropriate, and avoid defining
a DEBUG() macro.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/Makefile')
-rw-r--r-- | drivers/mmc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile index 0b0920ae46b..c7c34aadfc9 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile | |||
@@ -23,3 +23,7 @@ obj-$(CONFIG_MMC_AU1X) += au1xmmc.o | |||
23 | obj-$(CONFIG_MMC_OMAP) += omap.o | 23 | obj-$(CONFIG_MMC_OMAP) += omap.o |
24 | 24 | ||
25 | mmc_core-y := mmc.o mmc_queue.o mmc_sysfs.o | 25 | mmc_core-y := mmc.o mmc_queue.o mmc_sysfs.o |
26 | |||
27 | ifeq ($(CONFIG_MMC_DEBUG),y) | ||
28 | EXTRA_CFLAGS += -DDEBUG | ||
29 | endif | ||