]> git.karo-electronics.de Git - linux-beck.git/commitdiff
memstick: change to new flag variable
authormatt mooney <mfm@muteddisk.com>
Fri, 14 Jan 2011 14:12:42 +0000 (06:12 -0800)
committerMichal Marek <mmarek@suse.cz>
Thu, 17 Mar 2011 13:05:34 +0000 (14:05 +0100)
The EXTRA_CFLAGS assignment in memstick/Makefile was not accomplishing
anything because this flag only has effect on sources at the same level
as the makefile (i.e., per directory). Since both core/ and host/ rely
on MEMSTICK_DEBUG, the subdir-ccflags-y variant seems to be the
appropriate choice.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
drivers/memstick/Makefile
drivers/memstick/core/Makefile
drivers/memstick/host/Makefile

index dc160fb435150ceeab480513919086a896077d29..98623590c7fe048d727f477f1f6d6ecf42d91ed2 100644 (file)
@@ -2,9 +2,7 @@
 # Makefile for the kernel MemoryStick device drivers.
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-       EXTRA_CFLAGS            += -DDEBUG
-endif
+subdir-ccflags-$(CONFIG_MEMSTICK_DEBUG) := -DDEBUG
 
 obj-$(CONFIG_MEMSTICK)         += core/
 obj-$(CONFIG_MEMSTICK)         += host/
index 8b2b5293877e0f1fd7da1766765f72d46d6bf24f..ecd0299377386fee7e062a87c9209a5ad36f22f1 100644 (file)
@@ -2,10 +2,6 @@
 # Makefile for the kernel MemoryStick core.
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-       EXTRA_CFLAGS            += -DDEBUG
-endif
-
 obj-$(CONFIG_MEMSTICK)         += memstick.o
 
 obj-$(CONFIG_MSPRO_BLOCK)      += mspro_block.o
index 12530e4311d31143dcab38c1405d92b02418c8de..a1815e9dd0193f49c700ec78c734b203d38bdfa4 100644 (file)
@@ -2,9 +2,5 @@
 # Makefile for MemoryStick host controller drivers
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-       EXTRA_CFLAGS                    += -DDEBUG
-endif
-
 obj-$(CONFIG_MEMSTICK_TIFM_MS)         += tifm_ms.o
 obj-$(CONFIG_MEMSTICK_JMICRON_38X)     += jmb38x_ms.o