power: Use subdir-ccflags-* to inherit debug flag
[firefly-linux-kernel-4.4.55.git] / drivers / power / Makefile
index 2888bb0acadd16c560765249f94ea98675096ff1..7b604f4926fca5d172fd41f5e6224ba1a45ae1c7 100644 (file)
@@ -1,4 +1,4 @@
-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
+subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
 
 power_supply-y                         := power_supply_core.o
 power_supply-$(CONFIG_SYSFS)           += power_supply_sysfs.o