forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/drivers/net/ethernet/apple/mace.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Network device driver for the MACE ethernet controller on
34 * Apple Powermacs. Assumes it's under a DBDMA controller.
....@@ -18,10 +19,10 @@
1819 #include <linux/spinlock.h>
1920 #include <linux/bitrev.h>
2021 #include <linux/slab.h>
22
+#include <linux/pgtable.h>
2123 #include <asm/prom.h>
2224 #include <asm/dbdma.h>
2325 #include <asm/io.h>
24
-#include <asm/pgtable.h>
2526 #include <asm/macio.h>
2627
2728 #include "mace.h"
....@@ -764,7 +765,7 @@
764765 dev->stats.tx_bytes += mp->tx_bufs[i]->len;
765766 ++dev->stats.tx_packets;
766767 }
767
- dev_kfree_skb_irq(mp->tx_bufs[i]);
768
+ dev_consume_skb_irq(mp->tx_bufs[i]);
768769 --mp->tx_active;
769770 if (++i >= N_TX_RING)
770771 i = 0;