rtc: change to new flag variable
authormatt mooney <mfm@muteddisk.com>
Fri, 14 Jan 2011 14:12:48 +0000 (06:12 -0800)
committerMichal Marek <mmarek@suse.cz>
Thu, 17 Mar 2011 13:05:35 +0000 (14:05 +0100)
Replace EXTRA_CFLAGS with ccflags-y.

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/rtc/Makefile

index 2afdaf3ff98660f53c72a189503786ebeac0a27c..5f6c3838dcf6ab3b6c71c785dc8747fd107fd9b7 100644 (file)
@@ -2,9 +2,7 @@
 # Makefile for RTC class/drivers.
 #
 
-ifeq ($(CONFIG_RTC_DEBUG),y)
-       EXTRA_CFLAGS            += -DDEBUG
-endif
+ccflags-$(CONFIG_RTC_DEBUG)    := -DDEBUG
 
 obj-$(CONFIG_RTC_LIB)          += rtc-lib.o
 obj-$(CONFIG_RTC_HCTOSYS)      += hctosys.o