[PATCH 4/5] [Nios2]: Fix compiler warning

franck.jullien at gmail.com franck.jullien at gmail.com
Sun May 15 15:34:31 EDT 2011


From: Franck JULLIEN <franck.jullien at gmail.com>

Fix incompatible pointer type warning.

Signed-off-by: Franck JULLIEN <franck.jullien at gmail.com>
---
 drivers/net/altera_tse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index d922a9a..ac8cd2d 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -526,7 +526,7 @@ static int tse_probe(struct device_d *dev)
 	tx_desc = (struct alt_sgdma_descriptor *)NIOS_SOPC_TSE_DESC_MEM_BASE;
 	rx_desc = tx_desc + 2;
 #else
-	tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), &dma_handle);
+	tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), (unsigned long *)&dma_handle);
 	rx_desc = tx_desc + 2;
 
 	if (!tx_desc) {
-- 
1.7.0.4




More information about the barebox mailing list