summaryrefslogtreecommitdiffstats
path: root/drivers/rapidio/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rapidio/Makefile')
-rw-r--r--drivers/rapidio/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rapidio/Makefile b/drivers/rapidio/Makefile
index b6139fe187bf..89b8eca825b5 100644
--- a/drivers/rapidio/Makefile
+++ b/drivers/rapidio/Makefile
@@ -5,6 +5,4 @@ obj-y += rio.o rio-access.o rio-driver.o rio-scan.o rio-sysfs.o
obj-$(CONFIG_RAPIDIO) += switches/
-ifeq ($(CONFIG_RAPIDIO_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+subdir-ccflags-$(CONFIG_RAPIDIO_DEBUG) := -DDEBUG