diff options
Diffstat (limited to 'drivers/net/ethernet/aeroflex/greth.c')
-rw-r--r-- | drivers/net/ethernet/aeroflex/greth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c index 7ff4b30d55ea..e06694555144 100644 --- a/drivers/net/ethernet/aeroflex/greth.c +++ b/drivers/net/ethernet/aeroflex/greth.c | |||
@@ -1464,18 +1464,18 @@ static int greth_of_probe(struct platform_device *ofdev) | |||
1464 | } | 1464 | } |
1465 | 1465 | ||
1466 | /* Allocate TX descriptor ring in coherent memory */ | 1466 | /* Allocate TX descriptor ring in coherent memory */ |
1467 | greth->tx_bd_base = dma_alloc_coherent(greth->dev, 1024, | 1467 | greth->tx_bd_base = dma_zalloc_coherent(greth->dev, 1024, |
1468 | &greth->tx_bd_base_phys, | 1468 | &greth->tx_bd_base_phys, |
1469 | GFP_KERNEL | __GFP_ZERO); | 1469 | GFP_KERNEL); |
1470 | if (!greth->tx_bd_base) { | 1470 | if (!greth->tx_bd_base) { |
1471 | err = -ENOMEM; | 1471 | err = -ENOMEM; |
1472 | goto error3; | 1472 | goto error3; |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | /* Allocate RX descriptor ring in coherent memory */ | 1475 | /* Allocate RX descriptor ring in coherent memory */ |
1476 | greth->rx_bd_base = dma_alloc_coherent(greth->dev, 1024, | 1476 | greth->rx_bd_base = dma_zalloc_coherent(greth->dev, 1024, |
1477 | &greth->rx_bd_base_phys, | 1477 | &greth->rx_bd_base_phys, |
1478 | GFP_KERNEL | __GFP_ZERO); | 1478 | GFP_KERNEL); |
1479 | if (!greth->rx_bd_base) { | 1479 | if (!greth->rx_bd_base) { |
1480 | err = -ENOMEM; | 1480 | err = -ENOMEM; |
1481 | goto error4; | 1481 | goto error4; |