forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/sfc/falcon/nic.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /****************************************************************************
23 * Driver for Solarflare network controllers and boards
34 * Copyright 2005-2006 Fen Systems Ltd.
45 * Copyright 2006-2013 Solarflare Communications Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published
8
- * by the Free Software Foundation, incorporated herein by reference.
96 */
107
118 #include <linux/bitops.h>
....@@ -33,8 +30,8 @@
3330 int ef4_nic_alloc_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer,
3431 unsigned int len, gfp_t gfp_flags)
3532 {
36
- buffer->addr = dma_zalloc_coherent(&efx->pci_dev->dev, len,
37
- &buffer->dma_addr, gfp_flags);
33
+ buffer->addr = dma_alloc_coherent(&efx->pci_dev->dev, len,
34
+ &buffer->dma_addr, gfp_flags);
3835 if (!buffer->addr)
3936 return -ENOMEM;
4037 buffer->len = len;