diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2010-09-24 14:44:02 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 21:21:52 +0400 |
commit | d613746d8bc3a2904d4585d7efd7f457d9db6fb9 (patch) | |
tree | 2252b919e8d5c3a8ba1eda0e671a3813456d784e /drivers/usb/musb/Makefile | |
parent | e06ea97fa47611992a5a61058729cf8e83bf6fda (diff) | |
download | linux-d613746d8bc3a2904d4585d7efd7f457d9db6fb9.tar.xz |
USB: musb: make DBG() calls actually depend on CONFIG_USB_MUSB_DEBUG
Enabling CONFIG_USB_MUSB_DEBUG option causes -DDEBUG to be added to gcc's
command line, however the DBG() macro doesn't depend on DEBUG, so that the
debugging messages get printed regardless of the option, and I don't think
that this was intended. Get rid of otherwise unused xprintk() macro and make
DBG() macro directly call pr_debug() which only results in the actual code
generated if DEBUG is defined.
This change makes musb_hdrc.o ~30% less in size with CONFIG_USB_MUSB_DEBUG
disabled (in host mode).
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/Makefile')
0 files changed, 0 insertions, 0 deletions