Module: xenomai-3
Branch: wip/drivers
Commit: 703a720d33d8f531e83625e37850ee59312e16ba
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=703a720d33d8f531e83625e37850ee59312e16ba

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jun 28 10:49:26 2016 +0200

drivers/spi: sanitize DEBUG mode switch

---

 kernel/drivers/spi/Makefile      |    2 ++
 kernel/drivers/spi/spi-bcm2835.c |    3 ---
 kernel/drivers/spi/spi-device.c  |    3 ---
 kernel/drivers/spi/spi-master.c  |    3 ---
 4 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/kernel/drivers/spi/Makefile b/kernel/drivers/spi/Makefile
index 6c78a2e..2a00284 100644
--- a/kernel/drivers/spi/Makefile
+++ b/kernel/drivers/spi/Makefile
@@ -1,4 +1,6 @@
 
+ccflags-$(CONFIG_XENO_DRIVERS_SPI_DEBUG) := -DDEBUG
+
 obj-$(CONFIG_XENO_DRIVERS_SPI) += xeno_spi.o
 
 xeno_spi-y := spi-master.o spi-device.o
diff --git a/kernel/drivers/spi/spi-bcm2835.c b/kernel/drivers/spi/spi-bcm2835.c
index 118cfd5..117cf38 100644
--- a/kernel/drivers/spi/spi-bcm2835.c
+++ b/kernel/drivers/spi/spi-bcm2835.c
@@ -21,9 +21,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
-#ifdef CONFIG_XENO_DRIVERS_SPI_DEBUG
-#define DEBUG
-#endif
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/err.h>
diff --git a/kernel/drivers/spi/spi-device.c b/kernel/drivers/spi/spi-device.c
index 08cf9b0..71f30a6 100644
--- a/kernel/drivers/spi/spi-device.c
+++ b/kernel/drivers/spi/spi-device.c
@@ -15,9 +15,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
-#ifdef CONFIG_XENO_DRIVERS_SPI_DEBUG
-#define DEBUG
-#endif
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/device.h>
diff --git a/kernel/drivers/spi/spi-master.c b/kernel/drivers/spi/spi-master.c
index fe2ee40..ac7929a 100644
--- a/kernel/drivers/spi/spi-master.c
+++ b/kernel/drivers/spi/spi-master.c
@@ -15,9 +15,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
-#ifdef CONFIG_XENO_DRIVERS_SPI_DEBUG
-#define DEBUG
-#endif
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/device.h>


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to