diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-10-19 15:57:40 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-10-19 15:57:40 +0200 |
commit | 21cf17bb4ce5cb0cacb15d3659a544c215590001 (patch) | |
tree | 83e0149d930001faa1bc984f143417a314b1a77f /target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch | |
parent | f47cb405cafd57a25fceb7630af969e08b2f671c (diff) | |
download | upstream-21cf17bb4ce5cb0cacb15d3659a544c215590001.tar.gz upstream-21cf17bb4ce5cb0cacb15d3659a544c215590001.tar.bz2 upstream-21cf17bb4ce5cb0cacb15d3659a544c215590001.zip |
lantiq: remove support for kernel 4.19
The target uses 5.4 as default kernel since 06/2020.
Kernel 4.19 support is not really maintained anymore, it does not
seem to be needed and upcoming changes (mainly DSA) will break
backward-compatibility anyway.
Thus, make maintaining of old stuff and reviewing of new stuff
easier by removing support for kernel 4.19.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch b/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch deleted file mode 100644 index 05e4ec8328..0000000000 --- a/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/drivers/net/ethernet/lantiq_etop.c -+++ b/drivers/net/ethernet/lantiq_etop.c -@@ -40,6 +40,7 @@ - #include <linux/of_net.h> - #include <linux/of_irq.h> - #include <linux/of_platform.h> -+#include <linux/of_mdio.h> - - #include <asm/checksum.h> - -@@ -571,7 +572,8 @@ static int - ltq_etop_mdio_init(struct net_device *dev) - { - struct ltq_etop_priv *priv = netdev_priv(dev); -- int err; -+ struct device_node *mdio_np = NULL; -+ int err, ret; - - priv->mii_bus = mdiobus_alloc(); - if (!priv->mii_bus) { -@@ -591,7 +593,15 @@ ltq_etop_mdio_init(struct net_device *de - priv->mii_bus->name = "ltq_mii"; - snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", - priv->pdev->name, priv->pdev->id); -- if (mdiobus_register(priv->mii_bus)) { -+ -+ mdio_np = of_get_child_by_name(priv->pdev->dev.of_node, "mdio-bus"); -+ -+ if (mdio_np) -+ ret = of_mdiobus_register(priv->mii_bus, mdio_np); -+ else -+ ret = mdiobus_register(priv->mii_bus); -+ -+ if (ret) { - err = -ENXIO; - goto err_out_free_mdiobus; - } |