forked from rarias/nixos-riscv
Move patches to its own directory
This commit is contained in:
21
patches/ethernet-driver-build.patch
Normal file
21
patches/ethernet-driver-build.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/drivers/xxvnet_carv.c b/drivers/xxvnet_carv.c
|
||||
index d3f60f9..9fd4c21 100644
|
||||
--- a/drivers/xxvnet_carv.c
|
||||
+++ b/drivers/xxvnet_carv.c
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <linux/iopoll.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/clk.h>
|
||||
+#include <linux/platform_device.h>
|
||||
|
||||
#include "xxvnet_carv.h"
|
||||
|
||||
@@ -1511,7 +1512,7 @@ axienet_dma_probe(struct platform_device *pdev, struct net_device *ndev)
|
||||
spin_lock_init(&q->tx_lock);
|
||||
spin_lock_init(&q->rx_lock);
|
||||
|
||||
- netif_napi_add(ndev, &lp->napi, axienet_rx_poll, AXIENET_NAPI_WEIGHT);
|
||||
+ netif_napi_add(ndev, &lp->napi, axienet_rx_poll);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user