[PATCH v2 6/7] staging/wilc1000: Remove unneeded USE_SPI_DMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After zeroing the message, the value is zero anyway and we don't have
to set it explicitly.

Signed-off-by: Janosch Frank <kernel@xxxxxxxxxxxxxxxx>
---
 drivers/staging/wilc1000/linux_wlan_spi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c
index c406572..f1f5392 100644
--- a/drivers/staging/wilc1000/linux_wlan_spi.c
+++ b/drivers/staging/wilc1000/linux_wlan_spi.c
@@ -4,8 +4,6 @@
 #include "linux_wlan_common.h"
 #include "linux_wlan_spi.h"
 
-#define USE_SPI_DMA     0       /* johnny add */
-
 #ifdef WILC_ASIC_A0
  #if defined(PLAT_PANDA_ES_OMAP4460)
   #define MIN_SPEED 12000000
@@ -109,7 +107,6 @@ static void linux_spi_msg_init(struct spi_message *msg, struct spi_transfer *tr,
 	memset(tr, 0, sizeof(*tr));
 
 	msg->spi = wilc_spi_dev;
-	msg->is_dma_mapped = USE_SPI_DMA;
 
 	tr->tx_buf = tx;
 	tr->rx_buf = rx;
-- 
2.5.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux