.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/net/ethernet/ibm/emac/mal.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
17 | 18 | * |
---|
18 | 19 | * Armin Kuster <akuster@mvista.com> |
---|
19 | 20 | * Copyright 2002 MontaVista Softare Inc. |
---|
20 | | - * |
---|
21 | | - * This program is free software; you can redistribute it and/or modify it |
---|
22 | | - * under the terms of the GNU General Public License as published by the |
---|
23 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
24 | | - * option) any later version. |
---|
25 | | - * |
---|
26 | 21 | */ |
---|
27 | 22 | |
---|
28 | 23 | #include <linux/delay.h> |
---|
.. | .. |
---|
636 | 631 | bd_size = sizeof(struct mal_descriptor) * |
---|
637 | 632 | (NUM_TX_BUFF * mal->num_tx_chans + |
---|
638 | 633 | NUM_RX_BUFF * mal->num_rx_chans); |
---|
639 | | - mal->bd_virt = dma_zalloc_coherent(&ofdev->dev, bd_size, &mal->bd_dma, |
---|
640 | | - GFP_KERNEL); |
---|
| 634 | + mal->bd_virt = dma_alloc_coherent(&ofdev->dev, bd_size, &mal->bd_dma, |
---|
| 635 | + GFP_KERNEL); |
---|
641 | 636 | if (mal->bd_virt == NULL) { |
---|
642 | 637 | err = -ENOMEM; |
---|
643 | 638 | goto fail_unmap; |
---|