9
0
Fork 0

net: designware: use dma_alloc for descriptors

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-09-05 10:48:15 +02:00
parent 5302030510
commit f8db2d225e
1 changed files with 2 additions and 2 deletions

View File

@ -418,8 +418,8 @@ static int dwc_ether_probe(struct device_d *dev)
CONFIG_TX_DESCR_NUM * sizeof(struct dmamacdescr));
priv->rx_mac_descrtable = dma_alloc_coherent(
CONFIG_RX_DESCR_NUM * sizeof(struct dmamacdescr));
priv->txbuffs = malloc(TX_TOTAL_BUFSIZE);
priv->rxbuffs = malloc(RX_TOTAL_BUFSIZE);
priv->txbuffs = dma_alloc(TX_TOTAL_BUFSIZE);
priv->rxbuffs = dma_alloc(RX_TOTAL_BUFSIZE);
priv->fix_mac_speed = pdata->fix_mac_speed;
edev = &priv->netdev;