diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-09-29 12:31:20 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-04 12:00:21 -0400 |
commit | ceb9190969e458dcd1427566f762dbb9cfdfdc94 (patch) | |
tree | c5c785627eb29ee46dc7657883b5c717778be849 /drivers/core/Kconfig | |
parent | 6990e91f0971b877cd636e646f93587b1afbb284 (diff) | |
download | u-boot-ceb9190969e458dcd1427566f762dbb9cfdfdc94.tar.gz |
dm: replace dm_dbg() with pr_debug()
As we discussed before in ML, dm_dbg() causes undefined reference
error if #define DEBUG is added to users, but not drivers/core/util.c
We do not need this macro because we can use pr_debug() instead, and
it is pretty easy to enable it for the DM core by using ccflags-y.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/core/Kconfig')
-rw-r--r-- | drivers/core/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 7afef1f9a3f..e8ba20ca82d 100644 --- a/drivers/core/Kconfig +++ b/drivers/core/Kconfig @@ -45,6 +45,12 @@ config DM_WARN This will cause dm_warn() to be compiled out - it will do nothing when called. +config DM_DEBUG + bool "Enable debug messages in driver model core" + depends on DM + help + Say Y here if you want to compile in debug messages in DM core. + config DM_DEVICE_REMOVE bool "Support device removal" depends on DM |