lantiq: Refresh patches and configuration
[openwrt/openwrt.git] / target / linux / lantiq / patches-6.1 / 0701-NET-lantiq-etop-of-mido.patch
index 7e49b47e028248dee17054241a2d5b5d15c09625..19c027b9f85e220e34aac01e28d4853b3c7816ea 100644 (file)
@@ -10,7 +10,7 @@ Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
 
 --- a/drivers/net/ethernet/lantiq_etop.c
 +++ b/drivers/net/ethernet/lantiq_etop.c
-@@ -30,6 +30,7 @@
+@@ -31,6 +31,7 @@
  #include <linux/of_net.h>
  #include <linux/of_irq.h>
  #include <linux/of_platform.h>
@@ -18,7 +18,7 @@ Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  
  #include <asm/checksum.h>
  
-@@ -553,7 +554,8 @@ static int
+@@ -558,7 +559,8 @@ static int
  ltq_etop_mdio_init(struct net_device *dev)
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -28,10 +28,10 @@ Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  
        priv->mii_bus = mdiobus_alloc();
        if (!priv->mii_bus) {
-@@ -573,7 +575,15 @@ ltq_etop_mdio_init(struct net_device *de
+@@ -578,7 +580,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);
+                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");