diff options
author | Mathias Kresin <dev@kresin.me> | 2019-07-04 08:24:00 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-07-04 08:29:14 +0200 |
commit | cb689f2723b40c96426ac69f1478530ff1d48368 (patch) | |
tree | d427fd5b390c5397af95eb0c99c0595fb5dffa0e /target/linux/lantiq/patches-4.14/0701-NET-lantiq-etop-of-mido.patch | |
parent | e6867a5283b4bb4628744599f8b5070af846a054 (diff) | |
download | upstream-cb689f2723b40c96426ac69f1478530ff1d48368.tar.gz upstream-cb689f2723b40c96426ac69f1478530ff1d48368.tar.bz2 upstream-cb689f2723b40c96426ac69f1478530ff1d48368.zip |
lantiq: drop kernel 4.14 support
The current state of the kernel 4.14 support is in the openwrt-19.07
branch. No need to keep a not default used kernel in this branch.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/patches-4.14/0701-NET-lantiq-etop-of-mido.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.14/0701-NET-lantiq-etop-of-mido.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/lantiq/patches-4.14/0701-NET-lantiq-etop-of-mido.patch b/target/linux/lantiq/patches-4.14/0701-NET-lantiq-etop-of-mido.patch deleted file mode 100644 index 5dc4b81522..0000000000 --- a/target/linux/lantiq/patches-4.14/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> - -@@ -567,7 +568,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) { -@@ -587,7 +589,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; - } |