| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Network device driver for the MACE ethernet controller on |
|---|
| 3 | 4 | * Apple Powermacs. Assumes it's under a DBDMA controller. |
|---|
| .. | .. |
|---|
| 18 | 19 | #include <linux/spinlock.h> |
|---|
| 19 | 20 | #include <linux/bitrev.h> |
|---|
| 20 | 21 | #include <linux/slab.h> |
|---|
| 22 | +#include <linux/pgtable.h> |
|---|
| 21 | 23 | #include <asm/prom.h> |
|---|
| 22 | 24 | #include <asm/dbdma.h> |
|---|
| 23 | 25 | #include <asm/io.h> |
|---|
| 24 | | -#include <asm/pgtable.h> |
|---|
| 25 | 26 | #include <asm/macio.h> |
|---|
| 26 | 27 | |
|---|
| 27 | 28 | #include "mace.h" |
|---|
| .. | .. |
|---|
| 764 | 765 | dev->stats.tx_bytes += mp->tx_bufs[i]->len; |
|---|
| 765 | 766 | ++dev->stats.tx_packets; |
|---|
| 766 | 767 | } |
|---|
| 767 | | - dev_kfree_skb_irq(mp->tx_bufs[i]); |
|---|
| 768 | + dev_consume_skb_irq(mp->tx_bufs[i]); |
|---|
| 768 | 769 | --mp->tx_active; |
|---|
| 769 | 770 | if (++i >= N_TX_RING) |
|---|
| 770 | 771 | i = 0; |
|---|