dgnc: Move DG_PART definition from Makefile to dgnc_driver.h
authorCass May <cass@cassm.net>
Sun, 15 Feb 2015 23:40:18 +0000 (23:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2015 10:05:27 +0000 (11:05 +0100)
Avoid deprecated usage of EXTRA_CFLAGS by moving definition of DG_PART into dgnc_driver.h

Signed-off-by: Cass May <cass@cassm.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/Makefile
drivers/staging/dgnc/dgnc_driver.h

index 84cc98d5587929fee06a9d344874062cc98c5944..995c874f40eb138ce0af15eb6c97acd2e5730707 100644 (file)
@@ -1,5 +1,3 @@
-EXTRA_CFLAGS += -DDG_PART=\"40002369_F\"
-
 obj-$(CONFIG_DGNC) += dgnc.o
 
 dgnc-objs :=   dgnc_cls.o dgnc_driver.o\
index 734bdc2be446e66ad74b6601819e4d2fbc0a0358..a860705dd01b85163964f343af5f5382a28eab25 100644 (file)
@@ -46,6 +46,7 @@
 #define        PROCSTR         "dgnc"                  /* /proc entries         */
 #define        DEVSTR          "/dev/dg/dgnc"          /* /dev entries          */
 #define        DRVSTR          "dgnc"                  /* Driver name string    */
+#define        DG_PART         "40002369_F"            /* RPM part number       */
 
 #define TRC_TO_CONSOLE 1