projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: remove pre-5.10 specific kernel code
[openwrt/openwrt.git]
/
target
/
linux
/
ath79
/
files
/
drivers
/
net
/
ethernet
/
atheros
/
ag71xx
/
ag71xx_main.c
diff --git
a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index a38b336a8d8037f3d6faf9d3b4a9ed77005dd223..2fc18d597940c92610ca9e99c1319151afcae13e 100644
(file)
--- a/
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ b/
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@
-1198,11
+1198,7
@@
static void ag71xx_oom_timer_handler(struct timer_list *t)
napi_schedule(&ag->napi);
}
napi_schedule(&ag->napi);
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
static void ag71xx_tx_timeout(struct net_device *dev, unsigned int txqueue)
static void ag71xx_tx_timeout(struct net_device *dev, unsigned int txqueue)
-#else
-static void ag71xx_tx_timeout(struct net_device *dev)
-#endif
{
struct ag71xx *ag = netdev_priv(dev);
{
struct ag71xx *ag = netdev_priv(dev);
@@
-1679,13
+1675,8
@@
static int ag71xx_probe(struct platform_device *pdev)
eth_random_addr(dev->dev_addr);
}
eth_random_addr(dev->dev_addr);
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)
err = of_get_phy_mode(np, &ag->phy_if_mode);
if (err < 0) {
err = of_get_phy_mode(np, &ag->phy_if_mode);
if (err < 0) {
-#else
- ag->phy_if_mode = of_get_phy_mode(np);
- if (ag->phy_if_mode < 0) {
-#endif
dev_err(&pdev->dev, "missing phy-mode property in DT\n");
return ag->phy_if_mode;
}
dev_err(&pdev->dev, "missing phy-mode property in DT\n");
return ag->phy_if_mode;
}