From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/net/ethernet/cirrus/cs89x0.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/kernel/drivers/net/ethernet/cirrus/cs89x0.c b/kernel/drivers/net/ethernet/cirrus/cs89x0.c
index b3e7faf..33ace33 100644
--- a/kernel/drivers/net/ethernet/cirrus/cs89x0.c
+++ b/kernel/drivers/net/ethernet/cirrus/cs89x0.c
@@ -1128,7 +1128,7 @@
return &dev->stats;
}
-static void net_timeout(struct net_device *dev)
+static void net_timeout(struct net_device *dev, unsigned int txqueue)
{
/* If we get here, some higher level has decided we are broken.
There should really be a "kick me" function call instead. */
@@ -1844,15 +1844,11 @@
static int __init cs89x0_platform_probe(struct platform_device *pdev)
{
struct net_device *dev = alloc_etherdev(sizeof(struct net_local));
- struct net_local *lp;
- struct resource *mem_res;
void __iomem *virt_addr;
int err;
if (!dev)
return -ENOMEM;
-
- lp = netdev_priv(dev);
dev->irq = platform_get_irq(pdev, 0);
if (dev->irq <= 0) {
@@ -1861,8 +1857,7 @@
goto free;
}
- mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- virt_addr = devm_ioremap_resource(&pdev->dev, mem_res);
+ virt_addr = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(virt_addr)) {
err = PTR_ERR(virt_addr);
goto free;
--
Gitblit v1.6.2