summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-01-10 22:47:56 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-01-10 22:52:01 +0100
commite2821bee40bec00aed5abffa446a5ac3738b041e (patch)
tree8ddd4258148309d0fce089530eb5a996d815d57d
parent2ef2a489256b135429a652060416714172c23603 (diff)
downloadlinux-stable-e2821bee40bec00aed5abffa446a5ac3738b041e.tar.gz
linux-stable-e2821bee40bec00aed5abffa446a5ac3738b041e.tar.bz2
linux-stable-e2821bee40bec00aed5abffa446a5ac3738b041e.zip
pinctrl: pass -DDEBUG in subdirs
When drivers are compiled in subdirectories the -DDEBUG flag need to be passed in the individual Makefiles. Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com> Suggested-by: Yingjoe Chen <yingjoe.chen@mediatek.com> Cc: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
index c030b3db8034..c7139ba195fe 100644
--- a/drivers/pinctrl/Makefile
+++ b/drivers/pinctrl/Makefile
@@ -1,6 +1,6 @@
# generic pinmux support
-ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG
+subdir-ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG
obj-$(CONFIG_PINCTRL) += core.o pinctrl-utils.o
obj-$(CONFIG_PINMUX) += pinmux.o