diff options
author | Lucas Stach <dev@lynxeye.de> | 2015-03-05 22:49:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-06 07:51:47 +0100 |
commit | 394a3533a8c66400aeeddf69c5c2c45fb598a946 (patch) | |
tree | 58ba8373ef230882cb4cf44c3625ea4330d49209 /drivers | |
parent | f61fa09a42e6f936d55c5745f2001bd9b5d20c10 (diff) | |
download | barebox-394a3533a8c66400aeeddf69c5c2c45fb598a946.tar.gz barebox-394a3533a8c66400aeeddf69c5c2c45fb598a946.tar.xz |
NIOS2: use dma_addr_t in dma_alloc_coherent
This allows to consolidate the prototype of this function across
architectures. Also guard against calles that pass in NULL as the
dma handle pointer.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 ecbb9f8974..3c49c0945b 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -520,7 +520,7 @@ static int tse_probe(struct device_d *dev) return PTR_ERR(tx_desc); rx_desc = tx_desc + 2; #else - tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), (unsigned long *)&dma_handle); + tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), (dma_addr_t *)&dma_handle); rx_desc = tx_desc + 2; if (!tx_desc) { |