summaryrefslogtreecommitdiff
path: root/drivers/staging/dgap/Makefile
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-09-21 20:38:30 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 16:09:24 -0700
commit6319c61aecc7acaf39a1dc0e81a8aac6a17499ee (patch)
tree17638a992e502b3501b88e67b1fa07e143bd3797 /drivers/staging/dgap/Makefile
parentb74c746120376822fb9b5a28ab419cd4e07ac44f (diff)
drivers: staging: dgap: move DG_NAME and DG_PART from "Makefile" to "dgap_driver.h"
Normally, the macros from command line are system specific macros (e.g __linux, __KERNEL__ ...), and module own macros are usually defined in their header files. DG_NAME and DG_PART are driver 'dgap' owned macros which are used by multiple files within driver, and need be defined in the driver main header file. So move DG_NAME and DG_PART to "dgap_driver.h", it not only can make code clearer, but also can avoid compiling failure when EXTRA_CFLAGS appended to make command line (e.g. "EXTRA_CFLAGS=-W"). Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap/Makefile')
-rw-r--r--drivers/staging/dgap/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/dgap/Makefile b/drivers/staging/dgap/Makefile
index 9f1fce157c77..3abe8d2bb748 100644
--- a/drivers/staging/dgap/Makefile
+++ b/drivers/staging/dgap/Makefile
@@ -1,5 +1,3 @@
-EXTRA_CFLAGS += -DDG_NAME=\"dgap-1.3-16\" -DDG_PART=\"40002347_C\"
-
obj-$(CONFIG_DGAP) += dgap.o