[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>
This commit is contained in:
committed by
Russell King
parent
730c9b7e66
commit
c65631781e
@@ -31,12 +31,8 @@
|
||||
|
||||
#define BUGMAIL "<sdhci-devel@list.drzeus.cx>"
|
||||
|
||||
#ifdef CONFIG_MMC_DEBUG
|
||||
#define DBG(f, x...) \
|
||||
printk(KERN_DEBUG DRIVER_NAME " [%s()]: " f, __func__,## x)
|
||||
#else
|
||||
#define DBG(f, x...) do { } while (0)
|
||||
#endif
|
||||
pr_debug(DRIVER_NAME " [%s()]: " f, __func__,## x)
|
||||
|
||||
static const struct pci_device_id pci_ids[] __devinitdata = {
|
||||
/* handle any SD host controller */
|
||||
|
Reference in New Issue
Block a user